diff options
author | Gard Spreemann <gard.spreemann@epfl.ch> | 2016-04-19 12:08:00 +0200 |
---|---|---|
committer | Gard Spreemann <gard.spreemann@epfl.ch> | 2016-04-19 12:08:00 +0200 |
commit | 49fc2134d6d0c0061ea2335ea85e27a23f1a7612 (patch) | |
tree | bfbd4250bf98931e6e009c437480515757878445 | |
parent | 52d81872ab391c87b5d925fe1774ed3892526082 (diff) |
Vertex count.
-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]) |