diff options
Add seminar 12
1 files changed, 5 insertions, 0 deletions
| -rw-r--r-- | Seminar11/Graph-Impl/MatrixGraph/MatrixGraph.cpp | 5 |
diff --git a/Seminar11/Graph-Impl/MatrixGraph/MatrixGraph.cpp b/Seminar11/Graph-Impl/MatrixGraph/MatrixGraph.cpp index bf155a1..b5835f8 100644 --- a/Seminar11/Graph-Impl/MatrixGraph/MatrixGraph.cpp +++ b/Seminar11/Graph-Impl/MatrixGraph/MatrixGraph.cpp @@ -87,6 +87,11 @@ std::vector<vertex_t> MatrixGraph::getPredecessors(vertex_t from) const { return result; } +std::vector<vertex_t> MatrixGraph::adjacent(vertex_t from) const { + return getSuccessors(from); +} + + size_t MatrixGraph::vertexCount() const { return data.size(); }
\ No newline at end of file |
