is_straight_line_drawing
Verifies that no two edges in a straight line drawing intersect.
Complexity: O(n log n)
Defined in: <boost/graph/is_straight_line_drawing.hpp>
Synopsis
template <typename Graph, typename GridPositionMap,
typename VertexIndexMap>
bool is_straight_line_drawing(
const Graph& g,
GridPositionMap drawing,
VertexIndexMap vm);
| Direction | Parameter | Description |
|---|---|---|
IN |
|
An undirected graph. The type |
IN |
|
A Readable LValue Property Map that models the Position Map concept. The value mapped to
must be an object with members |
IN |
|
A Readable Property Map that maps vertices from |
Description
If drawing is a property map modeling the Position Map concept, is_straight_line_drawing returns true exactly when no two of the line segments induced by edges in the graph under drawing intersect.
This function works correctly in the presence of self-loops and parallel edges, and can be used to verify the output of the function chrobak_payne_straight_line_drawing.