SFCGAL 2.3.0
SFCGAL::graph Namespace Reference

graph namespace More...

Namespaces

namespace  algorithm
 Graph algorithm namespace.

Classes

struct  Edge
 [private]An edge in a GeometryGraph with minimal requirements (some algorithms could need more information) More...
class  GeometryGraphT
 [private]Represents the vertices and edges for a list of geometries. More...
class  GeometryGraphBuilderT
 [private]Convert Geometries to a GeometryGraph. More...
struct  Vertex
 [private]A vertex in a GeometryGraph with minimal requirements (some algorithms could need a richer class) More...

Typedefs

using EdgeDirection
 Specifies the direction of an edge in a graph.
using GeometryGraph = GeometryGraphT<Vertex, Edge>
 Default GeometryGraph with predefined Vertex and Edge properties for general usage.
typedef GeometryGraphBuilderT< GeometryGraph > GeometryGraphBuilder
 Geometry graph builder type.

Functions

EdgeDirection reverse (const EdgeDirection &direction)
 Returns the reverse of the given EdgeDirection.

Detailed Description

graph namespace

Todo
should be moved from detail to SFCGAL folder

Typedef Documentation

◆ EdgeDirection

Initial value:
enum {
DIRECT = 0,
REVERSE = 1
}

Specifies the direction of an edge in a graph.

◆ GeometryGraph

Default GeometryGraph with predefined Vertex and Edge properties for general usage.

◆ GeometryGraphBuilder

Function Documentation

◆ reverse()

EdgeDirection SFCGAL::graph::reverse ( const EdgeDirection & direction)
inline

Returns the reverse of the given EdgeDirection.

Converts DIRECT to REVERSE and REVERSE to DIRECT.

Parameters
directionThe current edge direction.
Returns
The opposite edge direction.