EdgesAndLinkedNodes
Bases: bokeh.models.graphs.GraphHitTestPolicy
bokeh.models.graphs.GraphHitTestPolicy
With the EdgesAndLinkedNodes policy, 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.
{ "id": "12401", "js_event_callbacks": {}, "js_property_callbacks": {}, "name": null, "subscribed_events": [], "tags": [] }
GraphHitTestPolicy
Bases: bokeh.model.Model
bokeh.model.Model
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.
{ "id": "12402", "js_event_callbacks": {}, "js_property_callbacks": {}, "name": null, "subscribed_events": [], "tags": [] }
LayoutProvider
{ "id": "12403", "js_event_callbacks": {}, "js_property_callbacks": {}, "name": null, "subscribed_events": [], "tags": [] }
NodesAndLinkedEdges
With the NodesAndLinkedEdges policy, 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.
{ "id": "12404", "js_event_callbacks": {}, "js_property_callbacks": {}, "name": null, "subscribed_events": [], "tags": [] }
NodesOnly
With the NodesOnly policy, only graph nodes are able to be selected and inspected. There is no selection or inspection of graph edges.
{ "id": "12405", "js_event_callbacks": {}, "js_property_callbacks": {}, "name": null, "subscribed_events": [], "tags": [] }
StaticLayoutProvider
Bases: bokeh.models.graphs.LayoutProvider
bokeh.models.graphs.LayoutProvider
graph_layout
property type: Dict ( Either ( String , Int ), Seq ( Any ) )
Dict
Either
String
Int
Seq
Any
The coordinates of the graph nodes in cartesian space. The dictionary keys correspond to a node index and the values are a two element sequence containing the x and y coordinates of the node.
{ 0 : [0.5, 0.5], 1 : [1.0, 0.86], 2 : [0.86, 1], }
{ "graph_layout": {}, "id": "12406", "js_event_callbacks": {}, "js_property_callbacks": {}, "name": null, "subscribed_events": [], "tags": [] }