pyvis-optimized 4.3.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyvis/__init__.py +2 -0
- pyvis/_version.py +1 -0
- pyvis/edge.py +26 -0
- pyvis/network.py +1498 -0
- pyvis/node.py +35 -0
- pyvis/shiny/__init__.py +213 -0
- pyvis/shiny/bindings.js +1310 -0
- pyvis/shiny/styles.css +382 -0
- pyvis/shiny/wrapper.py +1368 -0
- pyvis/templates/lib/bindings/utils.js +189 -0
- pyvis/templates/lib/tom-select/tom-select.complete.min.js +5021 -0
- pyvis/templates/lib/tom-select/tom-select.css +2 -0
- pyvis/templates/lib/vis-10.0.2/vis-network.min.css +2 -0
- pyvis/templates/lib/vis-10.0.2/vis-network.min.js +78 -0
- pyvis/templates/template.html +911 -0
- pyvis/types/__init__.py +59 -0
- pyvis/types/base.py +109 -0
- pyvis/types/common.py +74 -0
- pyvis/types/configure.py +13 -0
- pyvis/types/edges.py +139 -0
- pyvis/types/interaction.py +42 -0
- pyvis/types/layout.py +34 -0
- pyvis/types/manipulation.py +18 -0
- pyvis/types/network.py +34 -0
- pyvis/types/nodes.py +158 -0
- pyvis/types/physics.py +90 -0
- pyvis/utils.py +26 -0
- pyvis/vis_config.py +24 -0
- pyvis_optimized-4.3.1.dist-info/METADATA +269 -0
- pyvis_optimized-4.3.1.dist-info/RECORD +33 -0
- pyvis_optimized-4.3.1.dist-info/WHEEL +5 -0
- pyvis_optimized-4.3.1.dist-info/licenses/LICENSE_BSD.txt +27 -0
- pyvis_optimized-4.3.1.dist-info/top_level.txt +1 -0
pyvis/__init__.py
ADDED
pyvis/_version.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '4.3.1'
|
pyvis/edge.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"""Edge module for pyvis network visualization.
|
|
2
|
+
|
|
3
|
+
This module provides the Edge class for representing edges (connections)
|
|
4
|
+
between nodes in a network graph.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from typing import Union, Dict, Any
|
|
8
|
+
|
|
9
|
+
__all__ = ['Edge']
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class Edge:
|
|
13
|
+
"""Represents an edge (connection) between nodes in a network visualization.
|
|
14
|
+
|
|
15
|
+
An Edge encapsulates the properties and visual attributes of a connection
|
|
16
|
+
between two nodes, including the source and destination nodes, direction,
|
|
17
|
+
and other visual options like color and weight.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
def __init__(self, source: Union[str, int], dest: Union[str, int], directed: bool = False, **options):
|
|
21
|
+
self.options: Dict[str, Any] = options
|
|
22
|
+
self.options['from'] = source
|
|
23
|
+
self.options['to'] = dest
|
|
24
|
+
if directed:
|
|
25
|
+
if 'arrows' not in self.options:
|
|
26
|
+
self.options["arrows"] = "to"
|