Empirical
|
Information about nodes within a graph. More...
#include <Graph.h>
Public Member Functions | |
Node (size_t num_nodes) | |
What other node IDs is this one connected to? More... | |
Node (const Node &in_node) | |
~Node () | |
Node & | operator= (const Node &in_node) |
Set this node to have the same connections as another node. More... | |
bool | HasEdge (size_t to) const |
Is this node connect to a specific other node? More... | |
void | AddEdge (size_t to) |
Add a connection between this node and another. More... | |
void | AddEdgeSet (BitVector in_set) |
Add a full set of connections from this node to others. More... | |
void | RemoveEdge (size_t to) |
Remove the connection (if there is one) between this node and another one. More... | |
void | SetEdge (size_t to, bool val) |
Set whether a connection to another specific node should exist or not. More... | |
const BitVector & | GetEdgeSet () const |
Get a BitVector representing which nodes this one is connected to. More... | |
void | Resize (size_t new_size) |
Change the number of potential node connections that we are tracking. More... | |
void | Clear () |
Remove all edges from this node. More... | |
size_t | GetDegree () const |
Identify how many other nodes this one is connected to. More... | |
size_t | GetMaskedDegree (const BitVector &mask) const |
Identify how many other nodes from a provided set (a BitVector) this one is connected to. More... | |
Information about nodes within a graph.
|
inline |
What other node IDs is this one connected to?
|
inline |
|
inline |
|
inline |
Add a connection between this node and another.
|
inline |
Add a full set of connections from this node to others.
|
inline |
Remove all edges from this node.
|
inline |
Identify how many other nodes this one is connected to.
|
inline |
Get a BitVector representing which nodes this one is connected to.
|
inline |
Identify how many other nodes from a provided set (a BitVector) this one is connected to.
|
inline |
Is this node connect to a specific other node?
Set this node to have the same connections as another node.
|
inline |
Remove the connection (if there is one) between this node and another one.
|
inline |
Change the number of potential node connections that we are tracking.
|
inline |
Set whether a connection to another specific node should exist or not.