XACC
Public Member Functions | List of all members
xacc::Graph Class Referenceabstract
Inheritance diagram for xacc::Graph:
xacc::Identifiable xacc::Cloneable< Graph > xacc::DirectedBoostGraph xacc::UndirectedBoostGraph

Public Member Functions

virtual std::shared_ptr< Graphclone ()=0
 
virtual void addEdge (const int srcIndex, const int tgtIndex, const double edgeWeight)=0
 
virtual void addEdge (const int srcIndex, const int tgtIndex)=0
 
virtual void removeEdge (const int srcIndex, const int tgtIndex)=0
 
virtual void addVertex ()=0
 
virtual void addVertex (HeterogeneousMap &properties)=0
 
virtual void addVertex (HeterogeneousMap &&properties)=0
 
virtual void setVertexProperties (const int index, HeterogeneousMap &properties)=0
 
virtual void setVertexProperties (const int index, HeterogeneousMap &&properties)=0
 
virtual HeterogeneousMapgetVertexProperties (const int index)=0
 
virtual void setEdgeWeight (const int srcIndex, const int tgtIndex, const double weight)=0
 
virtual double getEdgeWeight (const int srcIndex, const int tgtIndex)=0
 
virtual bool edgeExists (const int srcIndex, const int tgtIndex)=0
 
virtual int degree (const int index)=0
 
virtual int diameter ()=0
 
virtual int size ()=0
 
virtual int order ()=0
 
virtual const int depth ()=0
 
virtual std::vector< int > getNeighborList (const int index)=0
 
virtual void write (std::ostream &stream)=0
 
virtual void read (std::istream &stream)=0
 
virtual void computeShortestPath (int startIndex, std::vector< double > &distances, std::vector< int > &paths)=0
 
- Public Member Functions inherited from xacc::Identifiable
virtual const std::string name () const =0
 
virtual const std::string description () const =0
 
virtual ~Identifiable ()
 
- Public Member Functions inherited from xacc::Cloneable< Graph >
virtual bool shouldClone ()
 
virtual ~Cloneable ()
 

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