1
0
Fork 0
arangodb/Documentation/DocuBlocks/JSF_general_graph_eccentric...

1.1 KiB

@brief Get the normalized eccentricity of the vertices defined by the examples.

graph._eccentricity(vertexExample, options)

Similar to _absoluteEccentricity but returns a normalized result.

The complexity of the function is described here.

@EXAMPLES

A route planner example, the eccentricity of all locations.

@EXAMPLE_ARANGOSH_OUTPUT{generalGraphModuleEccentricity2} var examples = require("@arangodb/graph-examples/example-graph.js"); var graph = examples.loadGraph("routeplanner"); graph._eccentricity(); ~ examples.dropGraph("routeplanner"); @END_EXAMPLE_ARANGOSH_OUTPUT

A route planner example, the weighted eccentricity.

@EXAMPLE_ARANGOSH_OUTPUT{generalGraphModuleEccentricity3} var examples = require("@arangodb/graph-examples/example-graph.js"); var graph = examples.loadGraph("routeplanner"); graph._eccentricity({weight : 'distance'}); ~ examples.dropGraph("routeplanner"); @END_EXAMPLE_ARANGOSH_OUTPUT