48 return std::numeric_limits<T>::has_infinity &&
49 value == std::numeric_limits<T>::infinity();
59 PivotMDS() : m_numberOfPivots(250), m_edgeCosts(100), m_hasEdgeCostsAttribute(false) { }
66 m_numberOfPivots = (numberOfPivots < DIMENSION_COUNT) ? DIMENSION_COUNT : numberOfPivots;
72 m_edgeCosts = edgeCosts;
80 m_hasEdgeCostsAttribute = useEdgeCostsAttribute;
84 return m_hasEdgeCostsAttribute;
92 const static int DIMENSION_COUNT = 2;
101 const static unsigned int SEED = 0;
125 void eigenValueDecomposition(
149 void singularValueDecomposition(
bool m_hasEdgeCostsAttribute
Tells whether the pivot mds is based on uniform edge costs or a edge costs attribute.
The parameterized class Array implements dynamic arrays of type E.
Data type for general directed graphs (adjacency list representation).
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
void useEdgeCostsAttribute(bool useEdgeCostsAttribute)
Declaration of several shortest path algorithms.
int m_numberOfPivots
The number of pivots.
void setNumberOfPivots(int numberOfPivots)
Sets the number of pivots. If the new value is smaller or equal 0 the default value (250) is used...
double m_edgeCosts
The costs to traverse an edge.
Stores additional attributes of a graph (like layout information).
void setEdgeCosts(double edgeCosts)
Sets the desired distance between adjacent nodes. If the new value is smaller or equal 0 the default ...
Declaration of interface for layout algorithms (class LayoutModule)
Class for the representation of nodes.
Interface of general layout algorithms.
Declaration of simple graph algorithms.
The namespace for all OGDF objects.
bool useEdgeCostsAttribute() const
static const double FACTOR
Factor used to center the pivot matrix.
The Pivot MDS (multi-dimensional scaling) layout algorithm.
static const double EPSILON
Convergence factor used for power iteration.