Website Summary Files Commits Branches @commit @diff @stats
path: root / Seminar11 / Graph-Impl / MatrixGraph / MatrixGraph.cpp
diff options
context:
space:
mode:
Commit63f4cb943f81c257e78ebeef828edbc04e78264b (patch)
Author
 Stoycho Kyosev <stoycho.kk@gmail.com>
2023-01-04 15:07:15 +0200
Committer
 Stoycho Kyosev <stoycho.kk@gmail.com>
2023-01-04 15:07:15 +0200
Files2a9972460ab6719f392f56f84f1edc2f568b85b8 /Seminar11/Graph-Impl/MatrixGraph/MatrixGraph.cpp
Data-structures-and-algorithms-63f4cb943f81c257e78ebeef828edbc04e78264b.tar
Data-structures-and-algorithms-63f4cb943f81c257e78ebeef828edbc04e78264b.tar.gz
Data-structures-and-algorithms-63f4cb943f81c257e78ebeef828edbc04e78264b.zip
Parentfcb06959d4425310eadee643f3fab68604063f51 (diff)
Add seminar 12
1 files changed, 5 insertions, 0 deletions
-rw-r--r--Seminar11/Graph-Impl/MatrixGraph/MatrixGraph.cpp5
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