Skip to content

Project OpenGeode

class Graph

Interface class to represent a Graph. A graph is a set of vertices linked by edges

cpp
Inherits from VertexSet
Inherits from VertexSet

Records

Impl

Functions

create

cpp
public std::unique_ptr<Graph> create()
public std::unique_ptr<Graph> create()

Create a new Graph using default data structure.

create

cpp
public std::unique_ptr<Graph> create(const MeshImpl & impl)
public std::unique_ptr<Graph> create(const MeshImpl & impl)

Create a new Graph using a specified data structure.

impl [in] Data structure implementation

type_name_static

cpp
public NamedType type_name_static()
public NamedType type_name_static()

clone

cpp
public std::unique_ptr<Graph> clone()
public std::unique_ptr<Graph> clone()

~Graph

cpp
public void ~Graph()
public void ~Graph()

edge_vertex

cpp
public index_t edge_vertex(const EdgeVertex & edge_vertex)
public index_t edge_vertex(const EdgeVertex & edge_vertex)

Return the vertex index corresponding to an edge endpoint

edge_vertex [in] Edge endpoint

edge_vertices

cpp
public std::array<index_t, 2> edge_vertices(index_t edge_id)
public std::array<index_t, 2> edge_vertices(index_t edge_id)

Return the indices of the two edge vertices

edge_id [in] Index of the edge

nb_edges

cpp
public index_t nb_edges()
public index_t nb_edges()

edge_attribute_manager

cpp
public AttributeManager & edge_attribute_manager()
public AttributeManager & edge_attribute_manager()

Access to the manager of attributes associated with edges.

edges_around_vertex

cpp
public const EdgesAroundVertex & edges_around_vertex(index_t vertex_id)
public const EdgesAroundVertex & edges_around_vertex(index_t vertex_id)

Get all edge endpoints corresponding to a given vertex

vertex_id [in] Index of the vertex

is_vertex_isolated

cpp
public bool is_vertex_isolated(index_t vertex_id)
public bool is_vertex_isolated(index_t vertex_id)

edge_from_vertices

cpp
public absl::optional<index_t> edge_from_vertices(index_t v0, index_t v1)
public absl::optional<index_t> edge_from_vertices(index_t v0, index_t v1)

set_edges_around_vertex

cpp
public void set_edges_around_vertex(index_t vertex_id, EdgesAroundVertex edges, GraphKey )
public void set_edges_around_vertex(index_t vertex_id, EdgesAroundVertex edges, GraphKey )

associate_edge_vertex_to_vertex

cpp
public void associate_edge_vertex_to_vertex(const EdgeVertex & edge_vertex, index_t vertex_id, GraphKey )
public void associate_edge_vertex_to_vertex(const EdgeVertex & edge_vertex, index_t vertex_id, GraphKey )

disassociate_edge_vertex_to_vertex

cpp
public void disassociate_edge_vertex_to_vertex(const EdgeVertex & edge_vertex, GraphKey )
public void disassociate_edge_vertex_to_vertex(const EdgeVertex & edge_vertex, GraphKey )

Graph

cpp
protected void Graph()
protected void Graph()

Graph

cpp
protected void Graph(Graph && other)
protected void Graph(Graph && other)

operator=

cpp
protected Graph & operator=(Graph && other)
protected Graph & operator=(Graph && other)

create

cpp
public int create()
public int create()

create

cpp
public int create(const MeshImpl & impl)
public int create(const MeshImpl & impl)

set_edges_around_vertex

cpp
public void set_edges_around_vertex(index_t vertex_id, int edges, GraphKey )
public void set_edges_around_vertex(index_t vertex_id, int edges, GraphKey )

Geode-solutions' documentation website