graphs#
- class EdgeCoordinates(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
Node coordinate expression obtained from
LayoutProvider
- class EdgesAndLinkedNodes(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
With the
EdgesAndLinkedNodespolicy, inspection or selection of graph edges will result in the inspection or selection of the edge and of the linked graph nodes. There is no direct selection or inspection of graph nodes.
- class EdgesOnly(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
With the
EdgesOnlypolicy, only graph edges are able to be selected and inspected. There is no selection or inspection of graph nodes.
- class GraphCoordinates(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
Abstract class for coordinate transform expression obtained from
LayoutProvider.Note
This is an abstract base class used to help organize the hierarchy of Bokeh model types. It is not useful to instantiate on its own.
- layout#
- class GraphHitTestPolicy(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
Note
This is an abstract base class used to help organize the hierarchy of Bokeh model types. It is not useful to instantiate on its own.
- class LayoutProvider(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
Note
This is an abstract base class used to help organize the hierarchy of Bokeh model types. It is not useful to instantiate on its own.
- property edge_coordinates: EdgeCoordinates#
- property node_coordinates: NodeCoordinates#
- class NodeCoordinates(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
Node coordinate expression obtained from
LayoutProvider.
- class NodesAndAdjacentNodes(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
With the
NodesAndAdjacentNodespolicy, inspection or selection of graph nodes will also result in the inspection or selection any nodes that are immediately adjacent (connected by a single edge). There is no selection or inspection of graph edges, and no indication of which node is the tool-selected one from the policy-selected nodes.
- class NodesAndLinkedEdges(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
With the
NodesAndLinkedEdgespolicy, inspection or selection of graph nodes will result in the inspection or selection of the node and of the linked graph edges. There is no direct selection or inspection of graph edges.
- class NodesOnly(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
With the
NodesOnlypolicy, only graph nodes are able to be selected and inspected. There is no selection or inspection of graph edges.
- class StaticLayoutProvider(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
- graph_layout#
The coordinates of the graph nodes in cartesian space. The keys of the dictionary correspond to node indices or labels and the values are two element sequences containing the x and y coordinates of the nodes.
{ 0 : [0.5, 0.5], 1 : [1.0, 0.86], 2 : [0.86, 1], }