custom_node_label_mapping
def custom_node_label_mapping(index: int, node: Dict)
let the label be the negated index
yfiles_jupyter_graphs.widget.GraphWidget.default_node_label_mapping
def default_node_label_mapping(index: int, node: TDict)
\n", + " \n", + " See default element label mapping.
custom_edge_label_mapping
def custom_edge_label_mapping(edge: Dict)
let the label be the negated index
yfiles_jupyter_graphs.widget.GraphWidget.default_edge_label_mapping
def default_edge_label_mapping(index: int, edge: TDict)
\n", + " \n", + " See default element label mapping.
custom_label_styles_mapping
def custom_label_styles_mapping(node: Dict)
let the label be the negated purple big index
yfiles_jupyter_graphs.widget.GraphWidget.default_node_label_mapping
def default_node_label_mapping(index: int, node: TDict)
\n", + " \n", + " See default element label mapping.
custom_label_styles_mapping
def custom_label_styles_mapping(node: Dict)
let the label be the negated purple big index
yfiles_jupyter_graphs.widget.GraphWidget.default_edge_label_mapping
def default_edge_label_mapping(index: int, edge: TDict)
\n", + " \n", + " See default element label mapping.
yfiles_jupyter_graphs.widget.GraphWidget.default_node_color_mapping
def default_node_color_mapping(index: int, node: TDict)
\n", + " \n", + " The default color mapping for nodes.\n", + "\n", + "Provides constant value of '#15AFAC' for all nodes, or different colors per label/type when importing a Neo4j\n", + "graph.\n", + "\n", + "Parameters\n", + "----------\n", + "index: int (optional)\n", + "node: typing.Dict\n", + "\n", + "Notes\n", + "-----\n", + "This is the default value for the `node_color_mapping` property.\n", + "Can be 'overwritten' by setting the property\n", + "with a function of the same signature.\n", + "\n", + "If the given mapping function has only one parameter (that is not typed as int),\n", + "then it will be called with the element (typing.Dict) as first parameter.\n", + "\n", + "Example\n", + "-------\n", + ".. code::\n", + "\n", + " from yfiles_jupyter_graphs import GraphWidget\n", + " w = GraphWidget()\n", + " def custom_node_color_mapping(node: typing.Dict):\n", + " ...\n", + " w.set_node_color_mapping(custom_node_color_mapping)\n", + "\n", + "Returns\n", + "-------\n", + "color: str\n", + " css color value\n", + "\n", + "References\n", + "----------\n", + "css color value <https://developer.mozilla.org/en-US/docs/Web/CSS/color_value>\n", + "\n", + "yFiles docs Fill api <https://docs.yworks.com/yfileshtml/#/api/Fill>
custom_node_color_mapping
def custom_node_color_mapping(node: Dict)
let the color be orange or blue if the index is even or odd respectively
yfiles_jupyter_graphs.widget.GraphWidget.default_node_color_mapping
def default_node_color_mapping(index: int, node: TDict)
\n", + " \n", + " The default color mapping for nodes.\n", + "\n", + "Provides constant value of '#15AFAC' for all nodes, or different colors per label/type when importing a Neo4j\n", + "graph.\n", + "\n", + "Parameters\n", + "----------\n", + "index: int (optional)\n", + "node: typing.Dict\n", + "\n", + "Notes\n", + "-----\n", + "This is the default value for the `node_color_mapping` property.\n", + "Can be 'overwritten' by setting the property\n", + "with a function of the same signature.\n", + "\n", + "If the given mapping function has only one parameter (that is not typed as int),\n", + "then it will be called with the element (typing.Dict) as first parameter.\n", + "\n", + "Example\n", + "-------\n", + ".. code::\n", + "\n", + " from yfiles_jupyter_graphs import GraphWidget\n", + " w = GraphWidget()\n", + " def custom_node_color_mapping(node: typing.Dict):\n", + " ...\n", + " w.set_node_color_mapping(custom_node_color_mapping)\n", + "\n", + "Returns\n", + "-------\n", + "color: str\n", + " css color value\n", + "\n", + "References\n", + "----------\n", + "css color value <https://developer.mozilla.org/en-US/docs/Web/CSS/color_value>\n", + "\n", + "yFiles docs Fill api <https://docs.yworks.com/yfileshtml/#/api/Fill>
yfiles_jupyter_graphs.widget.GraphWidget.default_edge_color_mapping
def default_edge_color_mapping(index: int, edge: TDict)
\n", + " \n", + " The default color mapping for edges.\n", + "\n", + "Provides constant value of '#15AFAC' for all edges.\n", + "\n", + "Parameters\n", + "----------\n", + "index: int (optional)\n", + "edge: typing.Dict\n", + "\n", + "Notes\n", + "-----\n", + "This is the default value for the `edge_color_mapping` property.\n", + "Can be 'overwritten' by setting the property\n", + "with a function of the same signature.\n", + "\n", + "If the given mapping function has only one parameter (that is not typed as int),\n", + "then it will be called with the element (typing.Dict) as first parameter.\n", + "\n", + "Example\n", + "-------\n", + ".. code::\n", + "\n", + " from yfiles_jupyter_graphs import GraphWidget\n", + " w = GraphWidget()\n", + " def custom_edge_color_mapping(edge: typing.Dict):\n", + " ...\n", + " w.set_edge_color_mapping(custom_edge_color_mapping)\n", + "\n", + "Returns\n", + "-------\n", + "color: str\n", + " css color value\n", + "\n", + "References\n", + "----------\n", + "css color value <https://developer.mozilla.org/en-US/docs/Web/CSS/color_value>\n", + "\n", + "yFiles docs Fill api <https://docs.yworks.com/yfileshtml/#/api/Fill>
custom_edge_color_mapping
def custom_edge_color_mapping(edge: Dict)
let the edge be purple if the starting node has an even index
yfiles_jupyter_graphs.widget.GraphWidget.default_edge_color_mapping
def default_edge_color_mapping(index: int, edge: TDict)
\n", + " \n", + " The default color mapping for edges.\n", + "\n", + "Provides constant value of '#15AFAC' for all edges.\n", + "\n", + "Parameters\n", + "----------\n", + "index: int (optional)\n", + "edge: typing.Dict\n", + "\n", + "Notes\n", + "-----\n", + "This is the default value for the `edge_color_mapping` property.\n", + "Can be 'overwritten' by setting the property\n", + "with a function of the same signature.\n", + "\n", + "If the given mapping function has only one parameter (that is not typed as int),\n", + "then it will be called with the element (typing.Dict) as first parameter.\n", + "\n", + "Example\n", + "-------\n", + ".. code::\n", + "\n", + " from yfiles_jupyter_graphs import GraphWidget\n", + " w = GraphWidget()\n", + " def custom_edge_color_mapping(edge: typing.Dict):\n", + " ...\n", + " w.set_edge_color_mapping(custom_edge_color_mapping)\n", + "\n", + "Returns\n", + "-------\n", + "color: str\n", + " css color value\n", + "\n", + "References\n", + "----------\n", + "css color value <https://developer.mozilla.org/en-US/docs/Web/CSS/color_value>\n", + "\n", + "yFiles docs Fill api <https://docs.yworks.com/yfileshtml/#/api/Fill>
yfiles_jupyter_graphs.widget.GraphWidget.default_node_layout_mapping
def default_node_layout_mapping(index: int, node: TDict)
\n", + " \n", + " The default layout mapping for nodes.\n", + "\n", + "Provides constant value None for all nodes.\n", + "Position and size mappings are used instead.\n", + "Default position and size mappings are a constant value of 0.0, 0.0 and 55.0,55.0 respectively.\n", + "\n", + "Parameters\n", + "----------\n", + "index: int (optional)\n", + "node: typing.Dict\n", + "\n", + "Notes\n", + "-----\n", + "This is the default value for the `node_layout_mapping` property.\n", + "Can be 'overwritten' by setting the property\n", + "with a function returning a float 4-tuple.\n", + "\n", + "The layout overwrites position and size mappings if not None.\n", + "\n", + "If the given mapping function has only one parameter (that is not typed as int),\n", + "then it will be called with the element (typing.Dict) as first parameter.\n", + "\n", + "Example\n", + "-------\n", + ".. code::\n", + "\n", + " from yfiles_jupyter_graphs import GraphWidget\n", + " w = GraphWidget()\n", + " def custom_node_layout_mapping(node: typing.Dict):\n", + " ...\n", + " w.set_node_layout_mapping(custom_node_layout_mapping)\n", + "\n", + "Returns\n", + "-------\n", + "layout: None | float 4-tuple
custom_node_layout_mapping
def custom_node_layout_mapping(node: Dict)
<no docstring>
yfiles_jupyter_graphs.widget.GraphWidget.default_node_layout_mapping
def default_node_layout_mapping(index: int, node: TDict)
\n", + " \n", + " The default layout mapping for nodes.\n", + "\n", + "Provides constant value None for all nodes.\n", + "Position and size mappings are used instead.\n", + "Default position and size mappings are a constant value of 0.0, 0.0 and 55.0,55.0 respectively.\n", + "\n", + "Parameters\n", + "----------\n", + "index: int (optional)\n", + "node: typing.Dict\n", + "\n", + "Notes\n", + "-----\n", + "This is the default value for the `node_layout_mapping` property.\n", + "Can be 'overwritten' by setting the property\n", + "with a function returning a float 4-tuple.\n", + "\n", + "The layout overwrites position and size mappings if not None.\n", + "\n", + "If the given mapping function has only one parameter (that is not typed as int),\n", + "then it will be called with the element (typing.Dict) as first parameter.\n", + "\n", + "Example\n", + "-------\n", + ".. code::\n", + "\n", + " from yfiles_jupyter_graphs import GraphWidget\n", + " w = GraphWidget()\n", + " def custom_node_layout_mapping(node: typing.Dict):\n", + " ...\n", + " w.set_node_layout_mapping(custom_node_layout_mapping)\n", + "\n", + "Returns\n", + "-------\n", + "layout: None | float 4-tuple
yfiles_jupyter_graphs.widget.GraphWidget.default_node_scale_factor_mapping
def default_node_scale_factor_mapping(index: int, node: TDict)
\n", + " \n", + " The default scale factor mapping for nodes.\n", + "\n", + "Provides constant value of 1.0 for all nodes.\n", + "\n", + "Parameters\n", + "----------\n", + "index: int (optional)\n", + "node: typing.Dict\n", + "\n", + "Notes\n", + "-----\n", + "This is the default value for the `node_scale_factor_mapping` property.\n", + "Can be 'overwritten' by setting the property\n", + "with a function of the same signature.\n", + "\n", + "If the given mapping function has only one parameter (that is not typed as int),\n", + "then it will be called with the element (typing.Dict) as first parameter.\n", + "\n", + "Example\n", + "-------\n", + ".. code::\n", + "\n", + " from yfiles_jupyter_graphs import GraphWidget\n", + " w = GraphWidget()\n", + " def custom_node_scale_factor_mapping(node: typing.Dict):\n", + " ...\n", + " w.set_node_scale_factor_mapping(custom_node_scale_factor_mapping)\n", + "\n", + "Returns\n", + "-------\n", + "node_scale_factor: float
custom_factor_mapping
def custom_factor_mapping(node: Dict)
choose random factor
yfiles_jupyter_graphs.widget.GraphWidget.default_node_scale_factor_mapping
def default_node_scale_factor_mapping(index: int, node: TDict)
\n", + " \n", + " The default scale factor mapping for nodes.\n", + "\n", + "Provides constant value of 1.0 for all nodes.\n", + "\n", + "Parameters\n", + "----------\n", + "index: int (optional)\n", + "node: typing.Dict\n", + "\n", + "Notes\n", + "-----\n", + "This is the default value for the `node_scale_factor_mapping` property.\n", + "Can be 'overwritten' by setting the property\n", + "with a function of the same signature.\n", + "\n", + "If the given mapping function has only one parameter (that is not typed as int),\n", + "then it will be called with the element (typing.Dict) as first parameter.\n", + "\n", + "Example\n", + "-------\n", + ".. code::\n", + "\n", + " from yfiles_jupyter_graphs import GraphWidget\n", + " w = GraphWidget()\n", + " def custom_node_scale_factor_mapping(node: typing.Dict):\n", + " ...\n", + " w.set_node_scale_factor_mapping(custom_node_scale_factor_mapping)\n", + "\n", + "Returns\n", + "-------\n", + "node_scale_factor: float
custom_size_mapping
def custom_size_mapping(index: int, node: Dict)
Select a width and height for the node
yfiles_jupyter_graphs.widget.GraphWidget.default_node_size_mapping
def default_node_size_mapping(index: int, node: TDict)
\n", + " \n", + " The default size mapping for nodes.\n", + "\n", + "Provides constant value 55.0, 55.0 for the width and height of all nodes.\n", + "\n", + "Parameters\n", + "----------\n", + "index: int (optional)\n", + "node: typing.Dict\n", + "\n", + "Notes\n", + "-----\n", + "This is the default value for the `node_size_mapping` property.\n", + "Can be 'overwritten' by setting the property\n", + "with a function of the same signature.\n", + "\n", + "If the given mapping function has only one parameter (that is not typed as int),\n", + "then it will be called with the element (typing.Dict) as first parameter.\n", + "\n", + "Example\n", + "-------\n", + ".. code::\n", + "\n", + " from yfiles_jupyter_graphs import GraphWidget\n", + " w = GraphWidget()\n", + " def custom_node_size_mapping(node: typing.Dict):\n", + " ...\n", + " w.set_node_size_mapping(custom_node_size_mapping)\n", + "\n", + "Returns\n", + "-------\n", + "size: float 2-tuple
yfiles_jupyter_graphs.widget.GraphWidget.default_node_size_mapping
def default_node_size_mapping(index: int, node: TDict)
\n", + " \n", + " The default size mapping for nodes.\n", + "\n", + "Provides constant value 55.0, 55.0 for the width and height of all nodes.\n", + "\n", + "Parameters\n", + "----------\n", + "index: int (optional)\n", + "node: typing.Dict\n", + "\n", + "Notes\n", + "-----\n", + "This is the default value for the `node_size_mapping` property.\n", + "Can be 'overwritten' by setting the property\n", + "with a function of the same signature.\n", + "\n", + "If the given mapping function has only one parameter (that is not typed as int),\n", + "then it will be called with the element (typing.Dict) as first parameter.\n", + "\n", + "Example\n", + "-------\n", + ".. code::\n", + "\n", + " from yfiles_jupyter_graphs import GraphWidget\n", + " w = GraphWidget()\n", + " def custom_node_size_mapping(node: typing.Dict):\n", + " ...\n", + " w.set_node_size_mapping(custom_node_size_mapping)\n", + "\n", + "Returns\n", + "-------\n", + "size: float 2-tuple
yfiles_jupyter_graphs.widget.GraphWidget.default_node_scale_factor_mapping
def default_node_scale_factor_mapping(index: int, node: TDict)
\n", + " \n", + " The default scale factor mapping for nodes.\n", + "\n", + "Provides constant value of 1.0 for all nodes.\n", + "\n", + "Parameters\n", + "----------\n", + "index: int (optional)\n", + "node: typing.Dict\n", + "\n", + "Notes\n", + "-----\n", + "This is the default value for the `node_scale_factor_mapping` property.\n", + "Can be 'overwritten' by setting the property\n", + "with a function of the same signature.\n", + "\n", + "If the given mapping function has only one parameter (that is not typed as int),\n", + "then it will be called with the element (typing.Dict) as first parameter.\n", + "\n", + "Example\n", + "-------\n", + ".. code::\n", + "\n", + " from yfiles_jupyter_graphs import GraphWidget\n", + " w = GraphWidget()\n", + " def custom_node_scale_factor_mapping(node: typing.Dict):\n", + " ...\n", + " w.set_node_scale_factor_mapping(custom_node_scale_factor_mapping)\n", + "\n", + "Returns\n", + "-------\n", + "node_scale_factor: float
yfiles_jupyter_graphs.widget.GraphWidget.default_node_position_mapping
def default_node_position_mapping(index: int, node: TDict)
\n", + " \n", + " The default position mapping for nodes.\n", + "\n", + "Provides constant value of 0.0, 0.0 for all nodes.\n", + "\n", + "Parameters\n", + "----------\n", + "index: int (optional)\n", + "node: typing.Dict\n", + "\n", + "Notes\n", + "-----\n", + "This is the default value for the `node_position_mapping` property.\n", + "Can be 'overwritten' by setting the property\n", + "with a function of the same signature.\n", + "\n", + "If the given mapping function has only one parameter (that is not typed as int),\n", + "then it will be called with the element (typing.Dict) as first parameter.\n", + "\n", + "Example\n", + "-------\n", + ".. code::\n", + "\n", + " from yfiles_jupyter_graphs import GraphWidget\n", + " w = GraphWidget()\n", + " def custom_node_position_mapping(node: typing.Dict):\n", + " ...\n", + " w.set_node_position_mapping(custom_node_position_mapping)\n", + "\n", + "Returns\n", + "-------\n", + "position: float 2-tuple
custom_node_position_mapping
def custom_node_position_mapping(node: Dict)
choose position randomly
yfiles_jupyter_graphs.widget.GraphWidget.default_node_position_mapping
def default_node_position_mapping(index: int, node: TDict)
\n", + " \n", + " The default position mapping for nodes.\n", + "\n", + "Provides constant value of 0.0, 0.0 for all nodes.\n", + "\n", + "Parameters\n", + "----------\n", + "index: int (optional)\n", + "node: typing.Dict\n", + "\n", + "Notes\n", + "-----\n", + "This is the default value for the `node_position_mapping` property.\n", + "Can be 'overwritten' by setting the property\n", + "with a function of the same signature.\n", + "\n", + "If the given mapping function has only one parameter (that is not typed as int),\n", + "then it will be called with the element (typing.Dict) as first parameter.\n", + "\n", + "Example\n", + "-------\n", + ".. code::\n", + "\n", + " from yfiles_jupyter_graphs import GraphWidget\n", + " w = GraphWidget()\n", + " def custom_node_position_mapping(node: typing.Dict):\n", + " ...\n", + " w.set_node_position_mapping(custom_node_position_mapping)\n", + "\n", + "Returns\n", + "-------\n", + "position: float 2-tuple
yfiles_jupyter_graphs.widget.GraphWidget.default_node_property_mapping
def default_node_property_mapping(index: int, node: TDict)
\n", + " \n", + " See default element property mapping.
custom_node_property_mapping
def custom_node_property_mapping(node: Dict)
use degree mapping to determine degree property
yfiles_jupyter_graphs.widget.GraphWidget.default_node_property_mapping
def default_node_property_mapping(index: int, node: TDict)
\n", + " \n", + " See default element property mapping.
yfiles_jupyter_graphs.widget.GraphWidget.default_edge_property_mapping
def default_edge_property_mapping(index: int, edge: TDict)
\n", + " \n", + " See default element property mapping.
custom_edge_property_mapping
def custom_edge_property_mapping(edge: Dict)
use edge load centrality mapping to determine edge load centrality property
yfiles_jupyter_graphs.widget.GraphWidget.default_edge_property_mapping
def default_edge_property_mapping(index: int, edge: TDict)
\n", + " \n", + " See default element property mapping.
yfiles_jupyter_graphs.widget.GraphWidget.default_node_styles_mapping
def default_node_styles_mapping(index: int, node: TDict)
\n", + " \n", + " The default styles mapping for nodes.\n", + "\n", + "Parameters\n", + "----------\n", + "index: int (optional)\n", + "node: typing.Dict\n", + "\n", + "Notes\n", + "-----\n", + "This is the default value for the `node_styles_mapping` property.\n", + "Can be 'overwritten' by setting the property\n", + "with a function of the same signature.\n", + "\n", + "If the given mapping function has only one parameter (that is not typed as int),\n", + "then it will be called with the element (typing.Dict) as first parameter.\n", + "\n", + "Example\n", + "-------\n", + ".. code::\n", + "\n", + " from yfiles_jupyter_graphs import GraphWidget\n", + " w = GraphWidget()\n", + " def custom_node_styles_mapping(node: typing.Dict):\n", + " ...\n", + " w.set_node_styles_mapping(custom_node_styles_mapping)\n", + "\n", + "Returns\n", + "-------\n", + "\n", + "styles: typing.Dict\n", + " can contain the following key-value-pairs:\n", + " "color": str\n", + " css color value\n", + " "shape": str\n", + " possible values: 'ellipse', 'hexagon', 'hexagon2', 'octagon', 'pill', 'rectangle', 'round-rectangle' or 'triangle'\n", + " "image": str\n", + " url or data URL of the image\n", + "\n", + "References\n", + "----------\n", + "css color value <https://developer.mozilla.org/en-US/docs/Web/CSS/color_value>\n", + "\n", + "Data URL <https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs>
custom_styles_mapping
def custom_styles_mapping(node: Dict)
Select a shape and a random color for the node
custom_styles_mapping_image
def custom_styles_mapping_image(item: Dict)
<no docstring>
yfiles_jupyter_graphs.widget.GraphWidget.default_node_type_mapping
def default_node_type_mapping(index: int, node: TDict)
\n", + " \n", + " The default type mapping for nodes.\n", + "\n", + "Provides the mapped node color to distinguish different node types\n", + "\n", + "Parameters\n", + "----------\n", + "index: int (optional)\n", + "node: typing.Dict\n", + "\n", + "Notes\n", + "-----\n", + "This is the default value for the `node_type_mapping` property.\n", + "Can be 'overwritten' by setting the property\n", + "with a function of the same signature.\n", + "\n", + "If the given mapping function has only one parameter (that is not typed as int),\n", + "then it will be called with the element (typing.Dict) as first parameter.\n", + "\n", + "Example\n", + "-------\n", + ".. code::\n", + "\n", + " from yfiles_jupyter_graphs import GraphWidget\n", + " w = GraphWidget()\n", + " def custom_node_type_mapping(node: typing.Dict):\n", + " ...\n", + " w.set_node_type_mapping(custom_node_type_mapping)\n", + "\n", + "Returns\n", + "-------\n", + "type: None
custom_node_type_mapping
def custom_node_type_mapping(node: Dict)
assign type accordingly
custom_node_type_mapping
def custom_node_type_mapping(node: Dict)
assign type accordingly
yfiles_jupyter_graphs.widget.GraphWidget.default_node_type_mapping
def default_node_type_mapping(index: int, node: TDict)
\n", + " \n", + " The default type mapping for nodes.\n", + "\n", + "Provides the mapped node color to distinguish different node types\n", + "\n", + "Parameters\n", + "----------\n", + "index: int (optional)\n", + "node: typing.Dict\n", + "\n", + "Notes\n", + "-----\n", + "This is the default value for the `node_type_mapping` property.\n", + "Can be 'overwritten' by setting the property\n", + "with a function of the same signature.\n", + "\n", + "If the given mapping function has only one parameter (that is not typed as int),\n", + "then it will be called with the element (typing.Dict) as first parameter.\n", + "\n", + "Example\n", + "-------\n", + ".. code::\n", + "\n", + " from yfiles_jupyter_graphs import GraphWidget\n", + " w = GraphWidget()\n", + " def custom_node_type_mapping(node: typing.Dict):\n", + " ...\n", + " w.set_node_type_mapping(custom_node_type_mapping)\n", + "\n", + "Returns\n", + "-------\n", + "type: None
yfiles_jupyter_graphs.widget.GraphWidget.default_directed_mapping
def default_directed_mapping(index: int, edge: TDict)
\n", + " \n", + " The default directed mapping for edges.\n", + "\n", + "Uses the graph wide directed attribute for all edges.\n", + "\n", + "Parameters\n", + "----------\n", + "index: int (optional)\n", + "edge: typing.Dict\n", + "\n", + "Notes\n", + "-----\n", + "This is the default value for the `directed_mapping` property.\n", + "Can be 'overwritten' by setting the property\n", + "with a function of the same signature.\n", + "\n", + "If the given mapping function has only one parameter (that is not typed as int),\n", + "then it will be called with the element (typing.Dict) as first parameter.\n", + "\n", + "Example\n", + "-------\n", + ".. code::\n", + "\n", + " from yfiles_jupyter_graphs import GraphWidget\n", + " w = GraphWidget()\n", + " def custom_directed_mapping(edge: typing.Dict):\n", + " ...\n", + " w.set_directed_mapping(custom_directed_mapping)\n", + "\n", + "Returns\n", + "-------\n", + "directed: bool
custom_directed_mapping
def custom_directed_mapping(edge: Dict)
choose randomly if edge is directed
yfiles_jupyter_graphs.widget.GraphWidget.default_directed_mapping
def default_directed_mapping(index: int, edge: TDict)
\n", + " \n", + " The default directed mapping for edges.\n", + "\n", + "Uses the graph wide directed attribute for all edges.\n", + "\n", + "Parameters\n", + "----------\n", + "index: int (optional)\n", + "edge: typing.Dict\n", + "\n", + "Notes\n", + "-----\n", + "This is the default value for the `directed_mapping` property.\n", + "Can be 'overwritten' by setting the property\n", + "with a function of the same signature.\n", + "\n", + "If the given mapping function has only one parameter (that is not typed as int),\n", + "then it will be called with the element (typing.Dict) as first parameter.\n", + "\n", + "Example\n", + "-------\n", + ".. code::\n", + "\n", + " from yfiles_jupyter_graphs import GraphWidget\n", + " w = GraphWidget()\n", + " def custom_directed_mapping(edge: typing.Dict):\n", + " ...\n", + " w.set_directed_mapping(custom_directed_mapping)\n", + "\n", + "Returns\n", + "-------\n", + "directed: bool
yfiles_jupyter_graphs.widget.GraphWidget.default_edge_thickness_factor_mapping
def default_edge_thickness_factor_mapping(index: int, edge: TDict)
\n", + " \n", + " The default thickness factor mapping for edges.\n", + "\n", + "Provides constant value of 1.0 for all edges.\n", + "\n", + "Parameters\n", + "----------\n", + "index: int (optional)\n", + "edge: typing.Dict\n", + "\n", + "Notes\n", + "-----\n", + "This is the default value for the `edge_thickness_factor_mapping` property.\n", + "Can be 'overwritten' by setting the property\n", + "with a function of the same signature.\n", + "\n", + "If the given mapping function has only one parameter (that is not typed as int),\n", + "then it will be called with the element (typing.Dict) as first parameter.\n", + "\n", + "Example\n", + "-------\n", + ".. code::\n", + "\n", + " from yfiles_jupyter_graphs import GraphWidget\n", + " w = GraphWidget()\n", + " def custom_edge_thickness_factor_mapping(edge: typing.Dict):\n", + " ...\n", + " w.set_edge_thickness_factor_mapping(custom_edge_thickness_factor_mapping)\n", + "\n", + "Returns\n", + "-------\n", + "edge_thickness_factor: float
custom_factor_mapping
def custom_factor_mapping(node: Dict)
choose random factor
yfiles_jupyter_graphs.widget.GraphWidget.default_edge_thickness_factor_mapping
def default_edge_thickness_factor_mapping(index: int, edge: TDict)
\n", + " \n", + " The default thickness factor mapping for edges.\n", + "\n", + "Provides constant value of 1.0 for all edges.\n", + "\n", + "Parameters\n", + "----------\n", + "index: int (optional)\n", + "edge: typing.Dict\n", + "\n", + "Notes\n", + "-----\n", + "This is the default value for the `edge_thickness_factor_mapping` property.\n", + "Can be 'overwritten' by setting the property\n", + "with a function of the same signature.\n", + "\n", + "If the given mapping function has only one parameter (that is not typed as int),\n", + "then it will be called with the element (typing.Dict) as first parameter.\n", + "\n", + "Example\n", + "-------\n", + ".. code::\n", + "\n", + " from yfiles_jupyter_graphs import GraphWidget\n", + " w = GraphWidget()\n", + " def custom_edge_thickness_factor_mapping(edge: typing.Dict):\n", + " ...\n", + " w.set_edge_thickness_factor_mapping(custom_edge_thickness_factor_mapping)\n", + "\n", + "Returns\n", + "-------\n", + "edge_thickness_factor: float
\n", + " | source | \n", + "target | \n", + "label | \n", + "id | \n", + "age | \n", + "color | \n", + "
---|---|---|---|---|---|---|
0 | \n", + "Node 0 | \n", + "Node 3 | \n", + "Row 0 | \n", + "0 | \n", + "31 | \n", + "red | \n", + "
1 | \n", + "Node 0 | \n", + "Node 4 | \n", + "Row 1 | \n", + "1 | \n", + "56 | \n", + "blue | \n", + "
2 | \n", + "Node 1 | \n", + "Node 4 | \n", + "Row 2 | \n", + "2 | \n", + "27 | \n", + "green | \n", + "
3 | \n", + "Node 2 | \n", + "Node 5 | \n", + "Row 3 | \n", + "3 | \n", + "43 | \n", + "orange | \n", + "
4 | \n", + "Node 2 | \n", + "Node 6 | \n", + "Row 4 | \n", + "4 | \n", + "19 | \n", + "purple | \n", + "
5 | \n", + "Node 2 | \n", + "Node 7 | \n", + "Row 5 | \n", + "5 | \n", + "84 | \n", + "yellow | \n", + "
6 | \n", + "Node 3 | \n", + "Node 8 | \n", + "Row 6 | \n", + "6 | \n", + "38 | \n", + "grey | \n", + "
7 | \n", + "Node 3 | \n", + "Node 9 | \n", + "Row 7 | \n", + "7 | \n", + "70 | \n", + "pink | \n", + "
8 | \n", + "Node 4 | \n", + "Node 6 | \n", + "Row 8 | \n", + "8 | \n", + "5 | \n", + "black | \n", + "
9 | \n", + "Node 5 | \n", + "Node 6 | \n", + "Row 9 | \n", + "9 | \n", + "92 | \n", + "brown | \n", + "
heatmap
def heatmap(element)
<no docstring>
yfiles_jupyter_graphs.widget.GraphWidget.default_heat_mapping
def default_heat_mapping(element: TDict)
\n", + " \n", + " The default scale factor mapping for nodes.\n", + "\n", + "Provides constant value of None for all elements.\n", + "\n", + "Parameters\n", + "----------\n", + "index: int (optional)\n", + "element: typing.Dict\n", + "\n", + "Notes\n", + "-----\n", + "This is the default value for the `heat_mapping` property.\n", + "Can be 'overwritten' by setting the property\n", + "with a function of the same signature.\n", + "\n", + "If the given mapping function has only one parameter (that is not typed as int),\n", + "then it will be called with the element (typing.Dict) as first parameter.\n", + "\n", + "Example\n", + "-------\n", + ".. code::\n", + "\n", + " from yfiles_jupyter_graphs import GraphWidget\n", + " w = GraphWidget()\n", + " def custom_heat_mapping(element: typing.Dict):\n", + " ...\n", + " w.set_heat_mapping(custom_heat_mapping)\n", + "\n", + "Returns\n", + "-------\n", + "heat: float | None
yfiles_jupyter_graphs.widget.GraphWidget.default_node_coordinate_mapping
def default_node_coordinate_mapping(index: int, node: TDict)
\n", + " \n", + " The default coordinate mapping for nodes.\n", + "\n", + "Provides constant value of None for all nodes.\n", + "\n", + "Parameters\n", + "----------\n", + "index: int (optional)\n", + "node: typing.Dict\n", + "\n", + "Notes\n", + "-----\n", + "This is the default value for the `node_coordinate_mapping` property.\n", + "Can be 'overwritten' by setting the property\n", + "with a function of the same signature.\n", + "\n", + "If the given mapping function has only one parameter (that is not typed as int),\n", + "then it will be called with the element (typing.Dict) as first parameter.\n", + "\n", + "Example\n", + "-------\n", + ".. code::\n", + "\n", + " from yfiles_jupyter_graphs import GraphWidget\n", + " w = GraphWidget()\n", + " def custom_node_coordinate_mapping(node: typing.Dict):\n", + " ...\n", + " w.set_node_coordinate_mapping(custom_node_coordinate_mapping)\n", + "\n", + "Returns\n", + "-------\n", + "coordinate: float 2-tuple
node_parent_mapping
node_parent_group_mapping
node_parent_mapping
node_parent_group_mapping