|
dyng
DynamicGraphLayout
|
20 #include <unordered_map>
44 : m_graph(std::move(g)) {}
54 auto found = m_node_map.find(
id);
55 if (found != m_node_map.end()) {
56 return m_graph.
node_at(found->second);
66 auto found = m_edge_map.find(
id);
67 if (found != m_edge_map.end()) {
68 return m_graph.
edge_at(found->second);
82 m_node_map.emplace(
node, target);
94 m_edge_map.emplace(
edge, target);
108 graph_partitioning m_graph;
109 std::unordered_map<node_id, node_id> m_node_map;
110 std::unordered_map<edge_id, edge_id> m_edge_map;
const NodeType & node_at(node_id id) const
Returns reference to node of given id.
Definition: graph.h:131
Type used as an identifier for edges.
Definition: identifiers.h:87
Represents an edge that holds information about its live times.
Definition: partitions.h:56
void clear_edges()
Removes all edges.
Definition: graph.h:280
Represents a node that holds information about its live times.
Definition: partitions.h:33
const EdgeType & edge_at(edge_id id) const
Returns reference to edge of given id.
Definition: graph.h:143
Type used as an identifier for nodes.
Definition: identifiers.h:77
Wrapper class for graph used to represent graph partitioning.
Definition: mapped_graph.h:39
void map_node(node_id node, node_id target)
Definition: mapped_graph.h:81
void map_edge(edge_id edge, edge_id target)
Definition: mapped_graph.h:93
void clear_nodes()
Removes all nodes.
Definition: graph.h:289