Class GraphEvent

Class Documentation

class GraphEvent

Public Types

enum Type

Values:

enumerator NODE_ADDITION
enumerator NODE_REMOVAL
enumerator NODE_RESTORATION
enumerator EDGE_ADDITION
enumerator EDGE_REMOVAL
enumerator EDGE_WEIGHT_UPDATE
enumerator EDGE_WEIGHT_INCREMENT
enumerator TIME_STEP

Public Functions

GraphEvent() = default
GraphEvent(Type type, node u = none, node v = none, edgeweight w = defaultEdgeWeight)
bool operator==(const GraphEvent &rhs) const noexcept
bool operator!=(const GraphEvent &rhs) const noexcept
bool operator<=(const GraphEvent &rhs) const noexcept
bool operator>=(const GraphEvent &rhs) const noexcept
std::string toString() const

Return string representation.

Public Members

Type type

type of graph event

node u

first node parameter

node v

second node parameter

edgeweight w

edge weight parameter

Friends

friend bool operator<(const GraphEvent &a, const GraphEvent &b) noexcept
friend bool operator>(const GraphEvent &a, const GraphEvent &b) noexcept