115 return isDummy(v) && !isProperDummy(v);
118 bool isProperDummy(
node v)
const;
123 int numberOfDummyNodes()
const;
125 int numberOfPhantomDummyNodes()
const;
127 int numberOfProperDummyNodes()
const;
130 bool consistencyCheck()
const;
138 int maxSubGraph()
const;
146 int numberOfBasicGraphs()
const;
149 void readGML(
const char *fileName);
151 void writeGML(
const char *fileName)
const;
154 const Graph getBasicGraph(
int i)
const;
180 bool addGraph(
const Graph & G);
int numberOfNodes() const
returns number of nodes
Graph m_G
the underlying graph
Declaration of class GraphAttributes which extends a Graph by additional attributes.
virtual void clear()
Removes all nodes and all edges from the graph.
bool compareById(node v, node w) const
compares two nodes v and w by their ids
Data type for general directed graphs (adjacency list representation).
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
bool has(long attr) const
Returns true iff all attributes in attr are available.
void addAttributes(long attr)
Enables attributes specified by attr and allocates required memory.
const GraphAttributes & constGraphAttributes() const
returns graphattributes
void addAttribute(long attr)
gives access to new attribute if not already given
bool & isDummy(node v)
returns true if node v is marked as dummy
Graph & constGraph()
returns graph
CompareBy
Types for node comparison.
const string & label(node v) const
Returns the label of node v.
Stores additional attributes of a graph (like layout information).
Declaration of graph copy classes.
const bool & isDummy(node v) const
returns true if node v is marked as dummy
GraphAttributes & constGraphAttributes()
returns graphattributes
Class for the representation of nodes.
Calls modified algorithms for simdraw instances.
NodeArray< bool > m_isDummy
dummy nodes may be colored differently
int index() const
Returns the (unique) node index.
GraphAttributes m_GA
the underlying graphattributes
CompareBy m_compareBy
compare mode
Creates variety of possible SimDraw creations.
const CompareBy & compareBy() const
returns compare mode
const Graph & constGraph() const
returns graph
CompareBy & compareBy()
returns compare mode
The Base class for simultaneous graph drawing.
bool isPhantomDummy(node v) const
returns true if node v is a cost zero dummy node
The namespace for all OGDF objects.
int numberOfNodes() const
Returns the number of nodes in the graph.
Offers predefined SimDraw creations.
bool compareByLabel(const GraphAttributes &vGA, node v, const GraphAttributes &wGA, node w) const
compares two nodes v and w by their labels
Interface for simdraw manipulators.