Markopy
Utilizing Markov Models for brute forcing attacks
|
Edge class used to link nodes in the model together. More...
#include <edge.h>
Public Member Functions | |
Edge () | |
Default constructor. More... | |
Edge (Node< NodeStorageType > *_left, Node< NodeStorageType > *_right) | |
Constructor. Initialize edge with given RightNode and LeftNode. More... | |
void | AdjustEdge (long int offset) |
Adjust the edge EdgeWeight with offset. Adds the offset parameter to the edge EdgeWeight. More... | |
Node< NodeStorageType > * | TraverseNode () |
Traverse this edge to RightNode. More... | |
void | SetLeftEdge (Node< NodeStorageType > *) |
Set LeftNode of this edge. More... | |
void | SetRightEdge (Node< NodeStorageType > *) |
Set RightNode of this edge. More... | |
uint64_t | EdgeWeight () |
return edge's EdgeWeight. More... | |
Node< NodeStorageType > * | LeftNode () |
return edge's LeftNode More... | |
Node< NodeStorageType > * | RightNode () |
return edge's RightNode More... | |
Private Attributes | |
Node< NodeStorageType > * | _left |
source node More... | |
Node< NodeStorageType > * | _right |
target node More... | |
long int | _weight |
Edge Edge Weight. More... | |
Edge class used to link nodes in the model together.
Has LeftNode, RightNode, and EdgeWeight of the edge. Edges are UNIDIRECTIONAL in this model. They can only be traversed LeftNode to RightNode.
Markov::Edge< NodeStorageType >::Edge |
Markov::Edge< NodeStorageType >::Edge | ( | Markov::Node< NodeStorageType > * | _left, |
Markov::Node< NodeStorageType > * | _right | ||
) |
Constructor. Initialize edge with given RightNode and LeftNode.
_left | - Left node of this edge. |
_right | - Right node of this edge. |
Example Use: Construct edge
void Markov::Edge< NodeStorageType >::AdjustEdge | ( | long int | offset | ) |
Adjust the edge EdgeWeight with offset. Adds the offset parameter to the edge EdgeWeight.
offset | - NodeValue to be added to the EdgeWeight |
Example Use: Construct edge
Definition at line 137 of file edge.h.
Referenced by Markov::API::MarkovPasswords::Buff().
|
inline |
return edge's EdgeWeight.
Definition at line 160 of file edge.h.
Referenced by Markov::API::MarkovPasswords::Buff(), and Markov::API::ModelMatrix::ConstructMatrix().
Markov::Node< NodeStorageType > * Markov::Edge< NodeStorageType >::LeftNode |
|
inline |
return edge's RightNode
Definition at line 170 of file edge.h.
Referenced by Markov::API::ModelMatrix::ConstructMatrix().
void Markov::Edge< NodeStorageType >::SetLeftEdge | ( | Markov::Node< NodeStorageType > * | n | ) |
void Markov::Edge< NodeStorageType >::SetRightEdge | ( | Markov::Node< NodeStorageType > * | n | ) |
|
inline |
Traverse this edge to RightNode.
Example Use: Traverse a node
Definition at line 143 of file edge.h.
References Markov::Edge< NodeStorageType >::_right.
|
private |
|
private |
target node
Definition at line 110 of file edge.h.
Referenced by Markov::Edge< NodeStorageType >::TraverseNode().
|
private |