1 #ifndef GRAPH_ANALYSIS_EDGE_HPP 2 #define GRAPH_ANALYSIS_EDGE_HPP 11 class EdgeTypeManager;
21 typedef shared_ptr< Edge >
Ptr;
26 Edge(
const std::string& label = std::string());
46 virtual std::string
toString()
const;
52 virtual std::string
toString(uint32_t indent)
const;
141 #endif // GRAPH_ANALYSIS_EDGE_HPP GraphElement is the base class for all element in a graph, i.e. for edges and vertices.
Definition: GraphElement.hpp:34
Edge::Ptr getPtr()
Definition: Edge.cpp:81
virtual ~Edge()
Definition: Edge.hpp:30
Edge::Ptr clone() const
Definition: Edge.cpp:16
Factory for Edge subclasses.
Definition: EdgeTypeManager.hpp:30
shared_ptr< Edge > Ptr
Definition: Edge.hpp:21
Edge(const std::string &label=std::string())
Definition: Edge.cpp:6
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
shared_ptr< Vertex > Ptr
Definition: Vertex.hpp:22
virtual std::string toString() const
Definition: Edge.cpp:28
static std::vector< Vertex::Ptr > getInvolvedVertices(const Edge::Ptr &e0, const Edge::Ptr &e1)
Definition: Edge.cpp:46
static bool areMeeting(const Edge::Ptr &e0, const Edge::Ptr &e1)
Definition: Edge.cpp:71
An Edge represents the link between two vertices.
Definition: Edge.hpp:18
Edge::Ptr getSharedPointerFromGraph(const shared_ptr< BaseGraph > &pGraph) const
Definition: Edge.cpp:76
virtual Edge * getClone() const
Definition: Edge.hpp:133
Vertex::Ptr getSourceVertex() const
Definition: Edge.hpp:57
virtual void registerAttributes(EdgeTypeManager *) const
Definition: Edge.hpp:128
shared_ptr< const Edge > ConstPtr
Definition: Edge.hpp:22
virtual std::string getClassName() const
Definition: Edge.cpp:23
std::set< Ptr > PtrSet
Definition: Edge.hpp:24
Vertex::Ptr getTargetVertex() const
Definition: Edge.hpp:62
std::vector< Ptr > PtrList
Definition: Edge.hpp:23
void setTargetVertex(const Vertex::Ptr &target)
Definition: Edge.hpp:72
void setSourceVertex(const Vertex::Ptr &source)
Definition: Edge.hpp:67