|
| WeightedGraph (size_t num_nodes=0) |
|
| WeightedGraph (const WeightedGraph &)=default |
| Copy constructor. More...
|
|
| WeightedGraph (WeightedGraph &&)=default |
| Move constructor. More...
|
|
| ~WeightedGraph () |
|
WeightedGraph & | operator= (const WeightedGraph &)=default |
| Copy operator. More...
|
|
WeightedGraph & | operator= (WeightedGraph &&)=default |
| Move operator. More...
|
|
void | Resize (size_t new_size) |
|
double | GetWeight (size_t from, size_t to) const |
| Determine weight of a specific edge in this graph. More...
|
|
void | AddEdge (size_t from, size_t to, double weight) |
| When Adding an edge, must also provide a weight. More...
|
|
void | AddEdgePair (size_t from, size_t to, double weight) |
| When Adding an edge pair, must also provide a weight. More...
|
|
void | Merge (const WeightedGraph &in_graph) |
| Merge two WeightedGraphs into one. More...
|
|
void | PrintSym (std::ostream &os=std::cout) |
| Print a symmetric graph to the provided output stream (defaulting to standard out) More...
|
|
void | PrintDirected (std::ostream &os=std::cout) |
| Print a directed graph to the provided output stream (defaulting to standard out) More...
|
|
size_t | GetSize () const |
| Get number of vertices in this graph. More...
|
|
size_t | GetEdgeCount () const |
| Get the total number of edges in this graph. More...
|
|
const BitVector & | GetEdgeSet (size_t id) const |
| Get the set of nodes that a specified node is connected to. More...
|
|
size_t | GetDegree (size_t id) const |
| Get the degree of a specified node. More...
|
|
size_t | GetMaskedDegree (size_t id, const BitVector &mask) const |
| Get how many of a set of nodes that a specified node is connected to. More...
|
|
bool | HasEdge (size_t from, size_t to) const |
| Determine if a specific edge is included in this graph. More...
|
|
void | AddEdge (size_t from, size_t to) |
| Add a specified edge into this graph. More...
|
|
void | RemoveEdge (size_t from, size_t to) |
| Remove a specified edge from this graph. More...
|
|
void | SetEdge (size_t from, size_t to, bool val) |
| Set the status of a specified edge as to whether or not it should be in the graph. More...
|
|
bool | HasEdgePair (size_t from, size_t to) const |
| Determine if edges exist in both directions between a pair of vertices. More...
|
|
void | AddEdgePair (size_t from, size_t to) |
| Add a pair of edges between two vertieces (in both directions) More...
|
|
void | RemoveEdgePair (size_t from, size_t to) |
| Remove edges in both directions between a pair of vertices. More...
|
|
void | SetEdgePairs (size_t from, size_t to, bool val) |
| Set the status as to whether a pair of edges (in both direction) exist. More...
|
|
void | Merge (const Graph &in_graph) |
| Merge a second graph into this one. More...
|
|