19 #include <TopologicCore/include/Graph.h> 21 #ifdef TOPOLOGIC_DYNAMO 22 using namespace Autodesk::DesignScript::Runtime;
52 #ifdef TOPOLOGIC_DYNAMO 53 static Graph^ ByTopology(
55 [DefaultArgument(
"true")]
bool direct,
56 [DefaultArgument(
"false")]
bool viaSharedTopologies,
57 [DefaultArgument(
"false")]
bool viaSharedApertures,
58 [DefaultArgument(
"false")]
bool toExteriorTopologies,
59 [DefaultArgument(
"false")]
bool toExteriorApertures,
60 [DefaultArgument(
"false")]
bool useFaceInternalVertex,
61 [DefaultArgument(
"0.0001")]
double tolerance);
63 static Graph^ ByTopology(
66 bool viaSharedTopologies,
67 bool viaSharedApertures,
68 bool toExteriorTopologies,
69 bool toExteriorApertures,
70 bool useFaceInternalVertex,
78 property List<Vertex^>^ Vertices
87 property List<Vertex^>^ IsolatedVertices
96 property List<Edge^>^ Edges
118 List<Vertex^>^ VerticesAtCoordinates(
119 double x,
double y,
double z,
120 #ifdef TOPOLOGIC_DYNAMO
121 [Autodesk::DesignScript::Runtime::DefaultArgument(
"0.0001")]
132 List<Vertex^>^ vertices,
133 #ifdef TOPOLOGIC_DYNAMO
134 [Autodesk::DesignScript::Runtime::DefaultArgument(
"0.0001")]
146 #ifdef TOPOLOGIC_DYNAMO
147 [Autodesk::DesignScript::Runtime::DefaultArgument(
"0.0001")]
161 #ifdef TOPOLOGIC_DYNAMO
162 [Autodesk::DesignScript::Runtime::DefaultArgument(
"0.0001")]
171 int VertexDegree(
Vertex^ vertex);
178 List<Vertex^>^ AdjacentVertices(
Vertex^ vertex);
186 bool ContainsVertex(
Vertex^ vertex,
187 #ifdef TOPOLOGIC_DYNAMO
188 [Autodesk::DesignScript::Runtime::DefaultArgument(
"0.0001")]
198 bool ContainsEdge(
Edge^ edge,
199 #ifdef TOPOLOGIC_DYNAMO
200 [Autodesk::DesignScript::Runtime::DefaultArgument(
"0.0001")]
208 property List<int>^ DegreeSequence
217 property double Density
226 property bool IsComplete
235 property int MinimumDelta
244 property int MaximumDelta
253 property int Diameter
265 List<Wire^>^ AllPaths(
268 #ifdef TOPOLOGIC_DYNAMO
269 [Autodesk::DesignScript::Runtime::DefaultArgument(
"null")]
271 Nullable<int> timeLimitInSeconds);
291 #ifdef TOPOLOGIC_DYNAMO
292 [Autodesk::DesignScript::Runtime::DefaultArgument(
"null")]
295 #ifdef TOPOLOGIC_DYNAMO
296 [Autodesk::DesignScript::Runtime::DefaultArgument(
"null")]
308 List<Wire^>^ ShortestPaths(
Vertex^ startVertex,
Vertex^ endVertex,
309 #ifdef TOPOLOGIC_DYNAMO
310 [Autodesk::DesignScript::Runtime::DefaultArgument(
"null")]
313 #ifdef TOPOLOGIC_DYNAMO
314 [Autodesk::DesignScript::Runtime::DefaultArgument(
"null")]
317 #ifdef TOPOLOGIC_DYNAMO
318 [Autodesk::DesignScript::Runtime::DefaultArgument(
"null")]
320 Nullable<int> timeLimitInSeconds);
328 int TopologicalDistance(
Vertex^ startVertex,
Vertex^ endVertex);
335 bool IsErdoesGallai(List<int>^ sequence);
342 Graph^ RemoveVertices(List<Vertex^>^ vertices);
349 Graph^ RemoveEdges(List<Edge^>^ edges);
359 #ifdef TOPOLOGIC_DYNAMO
360 [Autodesk::DesignScript::Runtime::DefaultArgument(
"0.0001")]
370 List<Topologic::Edge^>^ IncidentEdges(
Vertex^ vertex,
371 #ifdef TOPOLOGIC_DYNAMO
372 [Autodesk::DesignScript::Runtime::DefaultArgument(
"0.0001")]
379 Graph(
const std::shared_ptr<TopologicCore::Graph>& kpCoreGraph);
384 std::shared_ptr<TopologicCore::Graph>* m_pCoreGraph;
A Vertex is a zero-dimensional entity equivalent to a geometry point.
Definition: Vertex.h:31
A Topology is an abstract superclass that includes constructors, properties and methods used by other...
Definition: Topology.h:53
An Edge is a one-dimensional entity defined by two vertices. It is important to note that while a top...
Definition: Edge.h:31
Topologic is an open-source software modelling library enabling hierarchical and topological represen...
Definition: About.h:23
A Graph consists of a set of Vertices and a set of Edges that connect the Vertices. It is always a Cluster and it can be manifold or non-manifold.
Definition: Graph.h:37
A Wire is a contiguous collection of Edges, where adjacent Edges are connected by shared Vertices...
Definition: Wire.h:32