|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
56 template<
bool SupportFastSizeQuery = true>
91 template<
bool SupportFastSizeQuery = true>
92 class EdgeSet :
public RegisteredSet<internal::GraphEdgeRegistry, SupportFastSizeQuery> {
126 template<
bool SupportFastSizeQuery = true>
149 template<OGDF_NODE_LIST NL>
158 return insert(
begin(nodeList),
end(nodeList), edgeSet, nodeMap, edgeMap);
161 template<OGDF_NODE_LIST NL>
168 return insert(
begin(nodeList),
end(nodeList), edgeSet, nodeMap, edgeMap);
The namespace for all OGDF objects.
const list_type & elements() const
Returns a reference to the list of elements contained in this set.
Includes declaration of graph class.
NodeSet()=default
Creates an empty node set associated with no graph.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
Declaration and implementation of ogdf::RegisteredSet.
HypergraphRegistry< HypernodeElement >::iterator begin(const HypergraphRegistry< HypernodeElement > &self)
const Graph & graphOf() const
Returns the associated graph.
internal::GraphEdgeRegistry m_regEdgeArrays
The registered edge arrays.
const RS::list_type & nodes()
Returns a reference to the list of nodes contained in this set.
typename std::conditional< SupportFastSizeQuery, List< element_type >, ListPure< element_type > >::type list_type
const internal::GraphNodeRegistry * registeredAt() const
Returns the associated registry.
const Graph & graphOf() const
Returns the associated graph.
GraphRegistry< EdgeElement > GraphEdgeRegistry
GraphRegistry< AdjElement, GraphAdjIterator, 2 > GraphAdjRegistry
GraphRegistry< NodeElement > GraphNodeRegistry
Decralation of GraphElement and GraphList classes.
const RS::list_type & adjEntries()
Returns a reference to the list of adjEntries contained in this set.
RegisteredArray for nodes, edges and adjEntries of a graph.
Data type for general directed graphs (adjacency list representation).
Constant-time set operations.
std::pair< int, int > insert(const NI &nodesBegin, const NI &nodesEnd, const EI &edgesBegin, const EI &edgesEnd, NodeArray< node > &nodeMap, EdgeArray< edge > &edgeMap)
Inserts a copy of a given subgraph into this graph.
Basic declarations, included by all source files.
AdjEntrySet()=default
Creates an empty adjEntry set associated with no graph.
HypergraphRegistry< HypernodeElement >::iterator end(const HypergraphRegistry< HypernodeElement > &self)
NodeSet(const Graph &graph)
Creates a new node set associated with graph.
internal::GraphNodeRegistry m_regNodeArrays
The registered node arrays.
EdgeSet(const Graph &graph)
Creates a new edge set associated with graph.
const Graph & graphOf() const
Returns the associated graph.
AdjEntrySet(const Graph &graph)
Creates a new adjEntry set associated with graph.
EdgeSet()=default
Creates an empty edge set associated with no graph.
const RS::list_type & edges()
Returns a reference to the list of edges contained in this set.
internal::GraphAdjRegistry m_regAdjArrays
The registered adjEntry arrays.
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.
void reserveSpace(int new_keys)
Resizes all arrays to make space of new_keys new keys.