|
| | RandomWalk (sparksee::gdb::Session &session, sparksee::gdb::oid_t node) |
| | Builds the RandomWalk.
|
|
virtual | ~RandomWalk () |
| | Destructor.
|
| virtual void | AddEdgeType (sparksee::gdb::type_t type, sparksee::gdb::EdgesDirection dir) |
| | Allows for traversing edges of the given type.
|
| virtual void | AddAllEdgeTypes (sparksee::gdb::EdgesDirection dir) |
| | Allows for traversing all edge types of the graph.
|
| virtual void | AddNodeType (sparksee::gdb::type_t type) |
| | Allows for traversing nodes of the given type.
|
|
virtual void | AddAllNodeTypes () |
| | Allows for traversing all node types of the graph.
|
| virtual void | ExcludeNodes (sparksee::gdb::Objects &nodes) |
| | Set which nodes can't be used.
|
| virtual void | ExcludeEdges (sparksee::gdb::Objects &edges) |
| | Set which edges can't be used.
|
| virtual sparksee::gdb::oid_t | Next () |
| | Gets the next object of the traversal.
|
| virtual sparksee::gdb::bool_t | HasNext () |
| | Gets if there are more objects to be traversed.
|
| virtual sparksee::gdb::int32_t | GetCurrentDepth () const |
| | Returns the depth of the current node.
|
| void | SetEdgeWeightAttributeType (sparksee::gdb::attr_t attr) |
| | Sets the attribute to use as edge weight.
|
| void | SetDefaultWeight (sparksee::gdb::double64_t weight) |
| | Sets the default weight for those cases when a given edge does not have a weight attribute set.
|
| void | Reset (sparksee::gdb::oid_t startNode) |
| | Sets the starting node of the RandomWalk.
|
| void | SetReturnParameter (sparksee::gdb::double64_t val) |
| | Sets the return parameter of the RandomWalk.
|
| void | SetInOutParameter (sparksee::gdb::double64_t val) |
| | Sets the In-Out parameter of the RandomWalk.
|
| void | SetSeed (sparksee::gdb::int32_t seed) |
| | Sets the seed of the random walk.
|
| virtual void | SetMaximumHops (sparksee::gdb::int32_t maxhops) |
| | Sets the maximum hops restriction.
|
|
|
void | AssertAddedEdges () |
| | Check that edges had been added.
|
|
void | AssertAddedNodes () |
| | Check that nodes had been added.
|
|
void | AssertEdgeType (sparksee::gdb::type_t edgetype) |
| | Check that the given edge type is valid.
|
|
void | AssertNodeType (sparksee::gdb::type_t nodetype) |
| | Check that the given node type is valid.
|
|
sparksee::gdb::bool_t | IsNodeTypeAllowed (sparksee::gdb::oid_t nodeId) |
| | Check if the given node has an allowed type.
|
|
sparksee::gdb::bool_t | IsNodeExcluded (sparksee::gdb::oid_t node) |
| | Check if the given node is forbidden.
|
|
sparksee::gdb::bool_t | IsEdgeExcluded (sparksee::gdb::oid_t edge) |
| | Check if the given edge is forbidden.
|
RandomWalk class.
Implements the RandomWalk algorithm
- Author
- Sparsity Technologies http://www.sparsity-technologies.com
| void RandomWalk::SetEdgeWeightAttributeType |
( |
sparksee::gdb::attr_t | attr | ) |
|
Sets the attribute to use as edge weight.
If the multiple edge are set for traversal, this attribute must be of type GLOBAL_TYPE or EDGES_TYPE. Additionally, the attribute must be of type Double. Finally, negative weights are treated as non existing, so the default weight applies.
- Parameters
-
| attr | [in] The attribute type to use as a weight. Default: InvalidAttribute |