diff options
-rw-r--r-- | phstuff/simplicial.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/phstuff/simplicial.py b/phstuff/simplicial.py index 6614bf7..74b520f 100644 --- a/phstuff/simplicial.py +++ b/phstuff/simplicial.py @@ -144,6 +144,9 @@ class Complex: def __len__(self): return self.__count + def num_vertices(self): + return len(self.__root.keys()) + # Very naive temporary VR implementations. def naive_vr_tmp(graph, top_dim): assert(graph.shape[0] == graph.shape[1]) |