Delete unused methods
This commit is contained in:
@@ -20,37 +20,21 @@ public:
|
||||
// Add edge between v and u
|
||||
void insert(const T& v, const T& u);
|
||||
|
||||
// Delete vertex v
|
||||
void erase(T& v);
|
||||
|
||||
// Delete edge between v and u
|
||||
void erase(T& v, T& u);
|
||||
|
||||
// Adjacency matrix representation
|
||||
std::set<T> vertices;
|
||||
std::map<T, std::vector<T>> adjMatrix;
|
||||
std::map<T, std::set<T>> adjMatrix;
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
inline void Graph<T>::insert(const T& v) {
|
||||
void Graph<T>::insert(const T& v) {
|
||||
vertices.insert(v);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
inline void Graph<T>::insert(const T& v, const T& u) {
|
||||
void Graph<T>::insert(const T& v, const T& u) {
|
||||
vertices.insert(v);
|
||||
vertices.insert(u);
|
||||
adjMatrix[v].push_back(u);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
inline void Graph<T>::erase(T& v) {
|
||||
//
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
inline void Graph<T>::erase(T& v, T& u) {
|
||||
//
|
||||
adjMatrix[v].insert(u);
|
||||
}
|
||||
|
||||
} // namespace graph
|
||||
|
||||
Reference in New Issue
Block a user