NDEVR
API Documentation
HyperGraph::HGEdgeabstract

Abstract Edge class. More...

Inheritance diagram for HyperGraph::HGEdge:
[legend]

Public Member Functions

 HGEdge (int id=-1)
 creates and empty edge with no vertices
int id () const
 returns the id of this edge
void setId (int id)
 sets the id of this edge
virtual void setVertex (uint04 i, HGVertex *v)=0
 Sets the i-th vertex of this edge.
virtual const HGVertexvertex (uint04 i) const =0
 Returns a const pointer to the i-th vertex.
virtual HGVertexvertex (uint04 i)=0
 Returns a mutable pointer to the i-th vertex.
virtual uint04 vertexCount () const =0
 Returns the number of vertices connected by this edge.

Protected Attributes

int _id
 unique id

Detailed Description

Abstract Edge class.

Your nice edge classes should inherit from that one. An hyper-edge has pointers to the vertices it connects and stores them in a vector.

Definition at line 53 of file hyper_graph.h.

Member Function Documentation

◆ setVertex()

◆ vertex() [1/2]

◆ vertex() [2/2]

virtual HGVertex * HyperGraph::HGEdge::vertex ( uint04 i)
pure virtual

Returns a mutable pointer to the i-th vertex.

Parameters
[in]iThe vertex index.

Implemented in BaseBinaryEdge< D, E, VertexXi, VertexXj >, BaseMultiEdge< t_dims, E >, and BaseUnaryEdge< t_dims, E, VertexXi >.


The documentation for this class was generated from the following file: