graph_analysis
Public Types | Public Member Functions | Protected Member Functions | List of all members
graph_analysis::DirectedHyperEdge Class Reference

A DirectedHyperEdge represents a set of source vertices and target vertices. More...

#include <DirectedHyperEdge.hpp>

Inheritance diagram for graph_analysis::DirectedHyperEdge:
Inheritance graph
[legend]
Collaboration diagram for graph_analysis::DirectedHyperEdge:
Collaboration graph
[legend]

Public Types

typedef shared_ptr< DirectedHyperEdge > Ptr
 
- Public Types inherited from graph_analysis::HyperEdge
typedef shared_ptr< HyperEdge > Ptr
 
- Public Types inherited from graph_analysis::Vertex
typedef shared_ptr< Vertex > Ptr
 
typedef shared_ptr< const Vertex > ConstPtr
 
typedef std::vector< Ptr > PtrList
 
typedef std::set< Ptr > PtrSet
 
- Public Types inherited from graph_analysis::GraphElement
typedef shared_ptr< GraphElement > Ptr
 
typedef weak_ptr< GraphElement > WeakPtr
 
typedef std::vector< Ptr > PtrList
 

Public Member Functions

 DirectedHyperEdge (const std::string &label=std::string())
 
 DirectedHyperEdge (const Vertex::PtrList &fromVertices, const Vertex::PtrList &toVertices, const std::string &label=std::string())
 
virtual ~DirectedHyperEdge ()
 
virtual std::string getClassName () const
 
virtual std::string toString () const
 
virtual std::string toString (uint32_t indent) const
 
const Vertex::PtrList & getSourceVertices () const
 
const Vertex::PtrList & getTargetVertices () const
 
void setSourceVertices (const Vertex::PtrList &vertices)
 
void setTargetVertices (const Vertex::PtrList &vertices)
 
- Public Member Functions inherited from graph_analysis::HyperEdge
 HyperEdge (const std::string &label=std::string())
 
 HyperEdge (const Vertex::PtrList &vertices, const std::string &label=std::string())
 
virtual ~HyperEdge ()
 
virtual const Vertex::PtrList & getVertices () const
 
virtual void setVertices (const Vertex::PtrList &vertices)
 
- Public Member Functions inherited from graph_analysis::Vertex
virtual ~Vertex ()
 
 Vertex (const std::string &label=std::string())
 
Vertex::Ptr clone () const
 
Vertex::Ptr getSharedPointerFromGraph (const shared_ptr< BaseGraph > &pGraph) const
 
Vertex::Ptr getPtr ()
 
Vertex::ConstPtr getPtr () const
 
virtual void registerAttributes (VertexTypeManager *) const
 
- Public Member Functions inherited from graph_analysis::GraphElement
 GraphElement (const std::string &label=std::string())
 Default constructor. More...
 
virtual ~GraphElement ()
 
virtual void setLabel (const std::string &label)
 
virtual const std::string & getLabel () const
 
bool associated (GraphId graph) const
 
void associate (GraphId graph, GraphElementId elementId)
 
void disassociate (GraphId graph)
 
GraphElementId getId (GraphId graph) const
 
GraphElementUuid getUid () const
 
GraphElementUuid getUuid () const
 
GraphIdList getGraphAssociations () const
 
std::string toPrefixedString (GraphId graph) const
 

Protected Member Functions

virtual Vertex * getClone () const
 
- Protected Member Functions inherited from graph_analysis::GraphElement
GraphElement::Ptr getSharedFromThis ()
 
void disassociateFromAll ()
 
void setUuid (const GraphElementUuid &uuid)
 
void setUuid (const std::string &uuid)
 

Additional Inherited Members

- Static Public Member Functions inherited from graph_analysis::HyperEdge
static std::vector< Vertex::Ptr > getInvolvedVertices (const HyperEdge::Ptr &e0, const HyperEdge::Ptr &e1)
 
static bool areMeeting (const HyperEdge::Ptr &e0, const HyperEdge::Ptr &e1)
 
- Static Public Member Functions inherited from graph_analysis::GraphElement
static GraphElement::Ptr fromUuid (const GraphElementUuid &uuid)
 
- Protected Attributes inherited from graph_analysis::HyperEdge
Vertex::PtrList mVertices
 
- Protected Attributes inherited from graph_analysis::GraphElement
GraphElementMap mGraphElementMap
 
GraphElementUuid mUuid
 
std::string mLabel
 
- Static Protected Attributes inherited from graph_analysis::GraphElement
static boost::uuids::random_generator msUuidGenerator
 
static std::map< GraphElementUuid, function< GraphElement::Ptr()> > msGraphElements
 

Detailed Description

A DirectedHyperEdge represents a set of source vertices and target vertices.

For the purpose of storing data in a DirectedHyperEdge, the storage type needs to be defined by inheriting from this class

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ DirectedHyperEdge() [1/2]

graph_analysis::DirectedHyperEdge::DirectedHyperEdge ( const std::string &  label = std::string())

◆ DirectedHyperEdge() [2/2]

graph_analysis::DirectedHyperEdge::DirectedHyperEdge ( const Vertex::PtrList &  fromVertices,
const Vertex::PtrList &  toVertices,
const std::string &  label = std::string() 
)

◆ ~DirectedHyperEdge()

virtual graph_analysis::DirectedHyperEdge::~DirectedHyperEdge ( )
inlinevirtual

Member Function Documentation

◆ getClassName()

std::string graph_analysis::DirectedHyperEdge::getClassName ( ) const
virtual

Get class name

Returns
class name

Reimplemented from graph_analysis::HyperEdge.

◆ getClone()

virtual Vertex* graph_analysis::DirectedHyperEdge::getClone ( ) const
inlineprotectedvirtual

Get instance of an edge

Reimplemented from graph_analysis::HyperEdge.

◆ getSourceVertices()

const Vertex::PtrList& graph_analysis::DirectedHyperEdge::getSourceVertices ( ) const
inline

Get the source vertices

◆ getTargetVertices()

const Vertex::PtrList& graph_analysis::DirectedHyperEdge::getTargetVertices ( ) const
inline

Get the target vertices

◆ setSourceVertices()

void graph_analysis::DirectedHyperEdge::setSourceVertices ( const Vertex::PtrList &  vertices)
inline

Set the source vertices

◆ setTargetVertices()

void graph_analysis::DirectedHyperEdge::setTargetVertices ( const Vertex::PtrList &  vertices)
inline

Set the target vertices

◆ toString() [1/2]

std::string graph_analysis::DirectedHyperEdge::toString ( ) const
virtual

Convert element to string

Returns
string representation of edge

Reimplemented from graph_analysis::HyperEdge.

◆ toString() [2/2]

std::string graph_analysis::DirectedHyperEdge::toString ( uint32_t  indent) const
virtual

Convert element to string

Returns
string representation of edge

Reimplemented from graph_analysis::HyperEdge.


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