.. _package-rst-graph:
===================
Package rst.graph
===================
*Not documented*
Messages
========
.. container:: mess4ge-multi
.. container:: mess4ge-graph
.. digraph:: message_graph
fontname="Arial";
fontsize=11;
stylesheet="../_static/corlab.css";
node [fontsize=11]
node [fontname="Arial"]
edge [fontsize=11]
edge [fontname="Arial"]
"1" [label=<
| EdgeListGraph |
|
Node | nodes |
Edge | edges |
>,shape=box,style=filled,fillcolor="white"];
"3" [label=< | Edge |
|
UINT32 | head |
UINT32 | tail |
FLOAT32 | data |
>,shape=box,style=filled,fillcolor="white"];
"2" [label=< | Node |
|
FLOAT32 | data |
>,shape=box,style=filled,fillcolor="white"];
"1":edges -> "3" [];
"1":nodes -> "2" [];
.. container:: mess4ge-list
.. container:: messages
* :ref:`EdgeListGraph `
* :ref:`Node `
* :ref:`Edge `
.. container:: clearer
clearer: should be made invisible via css
.. _message-rst-graph-edgelistgraph:
Message EdgeListGraph
---------------------
.. container:: message-rst-graph-edgelistgraph-multi
.. container:: message-rst-graph-edgelistgraph-documentation
.. py:class:: rst.graph.EdgeListGraph
Holds information about an edge list graph data structure.
.. codeauthor:: Daniel Seidel
.. py:attribute:: nodes
:type: array of :py:class:`rst.graph.Node`
List of the nodes in the graph.
.. py:attribute:: edges
:type: array of :py:class:`rst.graph.Edge`
List of the edges in the graph.
.. container:: message-rst-graph-edgelistgraph-source
:download:`Download this file /home/jenkins/workspace/rst-manual-0.10-merge-simulator/rst-manual/../rst-proto/proto/sandbox/rst/graph/EdgeListGraph.proto>`
.. literalinclude:: //home/jenkins/workspace/rst-manual-0.10-merge-simulator/rst-manual/../rst-proto/proto/sandbox/rst/graph/EdgeListGraph.proto
:lines: 13-25
:language: protobuf
:emphasize-lines: 6-6,11-11
.. _message-rst-graph-node:
Message Node
------------
.. container:: message-rst-graph-node-multi
.. container:: message-rst-graph-node-documentation
.. py:class:: rst.graph.Node
Node with associated data in an edge-list graph.
.. codeauthor:: Daniel Seidel
.. py:attribute:: data
:type: array of :py:class:`FLOAT32`
Arbitrary data describing the node, e.g. location coordinates.
Specific to application creating the graph.
.. container:: message-rst-graph-node-source
:download:`Download this file /home/jenkins/workspace/rst-manual-0.10-merge-simulator/rst-manual/../rst-proto/proto/sandbox/rst/graph/Node.proto>`
.. literalinclude:: //home/jenkins/workspace/rst-manual-0.10-merge-simulator/rst-manual/../rst-proto/proto/sandbox/rst/graph/Node.proto
:lines: 10-19
:language: protobuf
:emphasize-lines: 8-8
.. _message-rst-graph-edge:
Message Edge
------------
.. container:: message-rst-graph-edge-multi
.. container:: message-rst-graph-edge-documentation
.. py:class:: rst.graph.Edge
Incident nodes and associated data of an edge in an edge-list
graph.
.. codeauthor:: Daniel Seidel
.. py:attribute:: head
:type: :py:class:`UINT32`
Index of the head node in the graph's node list.
.. py:attribute:: tail
:type: :py:class:`UINT32`
Index of the tail node in the graph's node list.
.. py:attribute:: data
:type: array of :py:class:`FLOAT32`
Arbitrary data describing the edge, e.g. traversal cost.
Specific to application creating the graph.
.. container:: message-rst-graph-edge-source
:download:`Download this file /home/jenkins/workspace/rst-manual-0.10-merge-simulator/rst-manual/../rst-proto/proto/sandbox/rst/graph/Edge.proto>`
.. literalinclude:: //home/jenkins/workspace/rst-manual-0.10-merge-simulator/rst-manual/../rst-proto/proto/sandbox/rst/graph/Edge.proto
:lines: 11-30
:language: protobuf
:emphasize-lines: 6-6,11-11,18-18