This is a helper class to make the glueing of two edges simpler. More...
#include <ogdf/planarity/NonPlanarCore.h>
Public Member Functions | |
GlueMap (edge eWinner, edge eLoser, NonPlanarCore< Cost > &npc) | |
A GlueMap is created from an NonPlanarCore and two core edges that ought to be glued together. More... | |
const Graph & | getLoserGraph () const |
Getter for m_gLoser. More... | |
node | getWinnerNodeOfLoserNode (node v) const |
Getter for m_mapV_l2w. More... | |
void | mapLoserToNewWinnerEdge (edge eInLoser) |
A mapping from the eInLoser graph to a new edge in the winner graph is created. More... | |
void | mapLoserToNewWinnerNode (node vInLoser) |
A mapping from the vInLoser to a new node in the winner graph is created. More... | |
void | mapLoserToWinnerNode (node vInLoser, node vInWinner) |
A mapping from the vInLoser to the vInWinner is created. More... | |
void | reorder (node vLoser, bool sameDirection, bool isTNodeOfPNode) |
This method reorders the adjacency order of vLoser's counterpart in the winner graph according to the AdjOrder of vLoser in the loser graph. More... | |
Protected Attributes | |
const edge | m_eLoser |
The core edge that will be deleted. More... | |
const edge | m_eWinner |
The core edge that will survive. More... | |
const Graph * | m_gLoser |
The graph that eLoser represents. More... | |
Graph * | m_gWinner |
The graph that eWinner represents. More... | |
EdgeArray< edge > | m_mapE_l2w |
A map from the edges of the loser graph to their new home in the winner graph. More... | |
const EdgeArray< edge > * | m_mapEloser |
A map from the edges of the loser graph to the original graph, to denote the original of each node. More... | |
EdgeArray< edge > * | m_mapEwinner |
A map from the edges of the winner graph to the original graph, to denote the original of each edge. More... | |
NodeArray< node > | m_mapV_l2w |
A map from the nodes of the loser graph to their new home in the winner graph. More... | |
const NodeArray< node > * | m_mapVloser |
A map from the nodes of the loser graph to the original graph, to denote the original of each node. More... | |
NodeArray< node > * | m_mapVwinner |
A map from the nodes of the winner graph to the original graph, to denote the original of each edge. More... | |
NonPlanarCore< Cost > & | m_npc |
The NonPlanarCore on which this instance operates. More... | |
This is a helper class to make the glueing of two edges simpler.
Definition at line 371 of file NonPlanarCore.h.
ogdf::GlueMap< Cost >::GlueMap | ( | edge | eWinner, |
edge | eLoser, | ||
NonPlanarCore< Cost > & | npc | ||
) |
A GlueMap is created from an NonPlanarCore and two core edges that ought to be glued together.
It holds many mappings, mostly to the original graph of the core.
eWinner | This edge gets extended. |
eLoser | This edge gets deleted in the end and everything it represents is transferred to eWinner . |
npc | The NonPlanarCore all of this exists in. |
Definition at line 1208 of file NonPlanarCore.h.
|
inline |
Getter for m_gLoser.
Definition at line 424 of file NonPlanarCore.h.
|
inline |
Getter for m_mapV_l2w.
v | the loser node |
Definition at line 416 of file NonPlanarCore.h.
void ogdf::GlueMap< Cost >::mapLoserToNewWinnerEdge | ( | edge | eInLoser | ) |
A mapping from the eInLoser
graph to a new edge in the winner graph is created.
Definition at line 1244 of file NonPlanarCore.h.
void ogdf::GlueMap< Cost >::mapLoserToNewWinnerNode | ( | node | vInLoser | ) |
A mapping from the vInLoser
to a new node in the winner graph is created.
Definition at line 1257 of file NonPlanarCore.h.
void ogdf::GlueMap< Cost >::mapLoserToWinnerNode | ( | node | vInLoser, |
node | vInWinner | ||
) |
A mapping from the vInLoser
to the vInWinner
is created.
Definition at line 1251 of file NonPlanarCore.h.
void ogdf::GlueMap< Cost >::reorder | ( | node | vLoser, |
bool | sameDirection, | ||
bool | isTNodeOfPNode | ||
) |
This method reorders the adjacency order of vLoser's
counterpart in the winner graph according to the AdjOrder of vLoser
in the loser graph.
vLoser | the node in question |
sameDirection | false iff this method is called while handling a P Node, for which the edges are not in the same direction. |
isTNodeOfPNode | true iff vLoser is the target node of the loser graph and the glueing process is done on a P Node. |
Definition at line 1264 of file NonPlanarCore.h.
|
protected |
The core edge that will be deleted.
Definition at line 434 of file NonPlanarCore.h.
|
protected |
The core edge that will survive.
Definition at line 432 of file NonPlanarCore.h.
|
protected |
The graph that eLoser represents.
Definition at line 438 of file NonPlanarCore.h.
|
protected |
The graph that eWinner represents.
Definition at line 436 of file NonPlanarCore.h.
|
protected |
A map from the edges of the loser graph to their new home in the winner graph.
Definition at line 450 of file NonPlanarCore.h.
|
protected |
A map from the edges of the loser graph to the original graph, to denote the original of each node.
Definition at line 442 of file NonPlanarCore.h.
|
protected |
A map from the edges of the winner graph to the original graph, to denote the original of each edge.
Definition at line 440 of file NonPlanarCore.h.
|
protected |
A map from the nodes of the loser graph to their new home in the winner graph.
Definition at line 448 of file NonPlanarCore.h.
|
protected |
A map from the nodes of the loser graph to the original graph, to denote the original of each node.
Definition at line 446 of file NonPlanarCore.h.
|
protected |
A map from the nodes of the winner graph to the original graph, to denote the original of each edge.
Definition at line 444 of file NonPlanarCore.h.
|
protected |
The NonPlanarCore on which this instance operates.
Definition at line 430 of file NonPlanarCore.h.