Classes | |
| class | EndVertices |
Public Member Functions | |
| None | __init__ (self) |
| None | __init__ (self, Graph arg0) |
| bool | areNeighbors (self, GraphVertId a, GraphVertId b) |
| bool | checkValidity (self) |
| None | construct (self, Vector_std_vector_GraphEdgeId_GraphVertId neighboursPerVertex, Vector_Graph_EndVertices_GraphEdgeId endsPerEdge) |
| int | edgeSize (self) |
| Graph.EndVertices | ends (self, GraphEdgeId e) |
| GraphEdgeId | findEdge (self, GraphVertId a, GraphVertId b) |
| None | merge (self, GraphVertId remnant, GraphVertId dead, func_void_from_Id_GraphEdgeTag_Id_GraphEdgeTag onMergeEdges) |
| std_vector_Id_GraphEdgeTag | neighbours (self, GraphVertId v) |
| bool | valid (self, GraphVertId v) |
| bool | valid (self, GraphEdgeId e) |
| GraphEdgeBitSet | validEdges (self) |
| GraphVertBitSet | validVerts (self) |
| int | vertSize (self) |
Static Public Member Functions | |
| None | __init__ (*args, **kwargs) |
| Graph | operator (*args, **kwargs) |
| Graph | operator (*args, **kwargs) |
Generated from: MR::Graph mathematical graph consisting from vertices and undirected edges
|
static |
| None mrmeshpy.Graph.__init__ | ( | self | ) |
| None mrmeshpy.Graph.__init__ | ( | self, | |
| Graph | arg0 ) |
Implicit copy constructor.
| bool mrmeshpy.Graph.areNeighbors | ( | self, | |
| GraphVertId | a, | ||
| GraphVertId | b ) |
returns true if the vertices a and b are neighbors
| bool mrmeshpy.Graph.checkValidity | ( | self | ) |
verifies that all internal data structures are valid
| None mrmeshpy.Graph.construct | ( | self, | |
| Vector_std_vector_GraphEdgeId_GraphVertId | neighboursPerVertex, | ||
| Vector_Graph_EndVertices_GraphEdgeId | endsPerEdge ) |
constructs the graph from all valid vertices and edges
| int mrmeshpy.Graph.edgeSize | ( | self | ) |
returns the number of edge records, including invalid ones
| Graph.EndVertices mrmeshpy.Graph.ends | ( | self, | |
| GraphEdgeId | e ) |
returns the ends of given edge
| GraphEdgeId mrmeshpy.Graph.findEdge | ( | self, | |
| GraphVertId | a, | ||
| GraphVertId | b ) |
finds and returns edge between vertices a and b; returns invalid edge otherwise
| None mrmeshpy.Graph.merge | ( | self, | |
| GraphVertId | remnant, | ||
| GraphVertId | dead, | ||
| func_void_from_Id_GraphEdgeTag_Id_GraphEdgeTag | onMergeEdges ) |
unites two vertices into one (deleting the second one), which leads to deletion and merge of some edges, for which callback is called
| std_vector_Id_GraphEdgeTag mrmeshpy.Graph.neighbours | ( | self, | |
| GraphVertId | v ) |
returns all edges adjacent to given vertex
|
static |
|
static |
| bool mrmeshpy.Graph.valid | ( | self, | |
| GraphEdgeId | e ) |
returns true if given edge is valid
| bool mrmeshpy.Graph.valid | ( | self, | |
| GraphVertId | v ) |
returns true if given vertex is valid
| GraphEdgeBitSet mrmeshpy.Graph.validEdges | ( | self | ) |
returns all valid edges in the graph
| GraphVertBitSet mrmeshpy.Graph.validVerts | ( | self | ) |
returns all valid vertices in the graph
| int mrmeshpy.Graph.vertSize | ( | self | ) |
returns the number of vertex records, including invalid ones
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |