Skip to content

Commit b1e8303

Browse files
authored
Merge pull request #1256 from compas-dev/merge-graph-into-network
Merge Graph into Network
2 parents 020c29c + ea8a04a commit b1e8303

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1357
-1498
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
* Added `compas.dtastructures.Network` as alias of `compas.datastructures.Graph`.
13+
1214
### Changed
1315

16+
* Merged `compas.datastructures.Network` into `compas.datastructures.Graph`.
17+
1418
### Removed
1519

20+
* Removed `compas.datastructures.Network`.
21+
1622
## [2.0.0-beta.2] 2024-01-12
1723

1824
### Added

docs/api/compas.datastructures.CellNetwork.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,13 @@ Topology
149149
~CellNetwork.halfface_opposite_cell
150150
~CellNetwork.halfface_opposite_halfface
151151
~CellNetwork.halfface_vertex_ancestor
152-
~CellNetwork.halfface_vertex_descendant
152+
~CellNetwork.halfface_vertex_descendent
153153
~CellNetwork.halfface_vertices
154154
~CellNetwork.has_edge
155155
~CellNetwork.has_halfface
156156
~CellNetwork.has_vertex
157157
~CellNetwork.is_cell_on_boundary
158158
~CellNetwork.is_edge_on_boundary
159-
~CellNetwork.is_halfedge_on_boundary
160159
~CellNetwork.is_halfface_on_boundary
161160
~CellNetwork.is_valid
162161
~CellNetwork.is_vertex_on_boundary
Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,199 @@
1+
******************************************************************************
2+
Graph
3+
******************************************************************************
4+
5+
.. currentmodule:: compas.datastructures
6+
7+
.. autoclass:: Graph
8+
9+
Methods
10+
=======
11+
12+
Constructors
13+
------------
14+
15+
.. autosummary::
16+
:toctree: generated/
17+
:nosignatures:
18+
19+
~Graph.from_edges
20+
~Graph.from_json
21+
~Graph.from_lines
22+
~Graph.from_networkx
23+
~Graph.from_nodes_and_edges
24+
~Graph.from_obj
25+
~Graph.from_pointcloud
26+
27+
Conversions
28+
-----------
29+
30+
.. autosummary::
31+
:toctree: generated/
32+
:nosignatures:
33+
34+
~Graph.to_json
35+
~Graph.to_lines
36+
~Graph.to_networkx
37+
~Graph.to_obj
38+
~Graph.to_points
39+
40+
Builders and Modifiers
41+
----------------------
42+
43+
.. autosummary::
44+
:toctree: generated/
45+
:nosignatures:
46+
47+
~Graph.add_edge
48+
~Graph.add_node
49+
~Graph.delete_edge
50+
~Graph.delete_node
51+
~Graph.join_edges
52+
~Graph.split_edge
53+
54+
Accessors
55+
---------
56+
57+
.. autosummary::
58+
:toctree: generated/
59+
:nosignatures:
60+
61+
~Graph.edge_sample
62+
~Graph.edges
63+
~Graph.edges_where
64+
~Graph.edges_where_predicate
65+
~Graph.node_sample
66+
~Graph.nodes
67+
~Graph.nodes_where
68+
~Graph.nodes_where_predicate
69+
70+
Attributes
71+
----------
72+
73+
.. autosummary::
74+
:toctree: generated/
75+
:nosignatures:
76+
77+
~Graph.edge_attribute
78+
~Graph.edge_attributes
79+
~Graph.edges_attribute
80+
~Graph.edges_attributes
81+
~Graph.node_attribute
82+
~Graph.node_attributes
83+
~Graph.nodes_attribute
84+
~Graph.nodes_attributes
85+
~Graph.update_default_edge_attributes
86+
~Graph.update_default_node_attributes
87+
~Graph.unset_edge_attribute
88+
~Graph.unset_node_attribute
89+
90+
Topology
91+
--------
92+
93+
.. autosummary::
94+
:toctree: generated/
95+
:nosignatures:
96+
97+
~Graph.complement
98+
~Graph.connected_nodes
99+
~Graph.connected_edges
100+
~Graph.degree
101+
~Graph.degree_out
102+
~Graph.degree_in
103+
~Graph.exploded
104+
~Graph.has_edge
105+
~Graph.has_node
106+
~Graph.is_leaf
107+
~Graph.is_node_connected
108+
~Graph.neighborhood
109+
~Graph.neighbors
110+
~Graph.neighbors_in
111+
~Graph.neighbors_out
112+
~Graph.node_edges
113+
~Graph.number_of_edges
114+
~Graph.number_of_nodes
115+
116+
Geometry
117+
--------
118+
119+
.. autosummary::
120+
:toctree: generated/
121+
:nosignatures:
122+
123+
~Graph.edge_coordinates
124+
~Graph.edge_direction
125+
~Graph.edge_end
126+
~Graph.edge_length
127+
~Graph.edge_line
128+
~Graph.edge_midpoint
129+
~Graph.edge_point
130+
~Graph.edge_start
131+
~Graph.edge_vector
132+
~Graph.node_coordinates
133+
~Graph.node_point
134+
~Graph.node_laplacian
135+
~Graph.node_neighborhood_centroid
136+
~Graph.transform
137+
~Graph.transformed
138+
139+
Paths
140+
-----
141+
142+
.. autosummary::
143+
:toctree: generated/
144+
:nosignatures:
145+
146+
~Graph.shortest_path
147+
148+
Planarity
149+
---------
150+
151+
.. autosummary::
152+
:toctree: generated/
153+
:nosignatures:
154+
155+
~Graph.count_crossings
156+
~Graph.embed_in_plane
157+
~Graph.find_crossings
158+
~Graph.find_cycles
159+
~Graph.is_crossed
160+
~Graph.is_planar
161+
~Graph.is_planar_embedding
162+
~Graph.is_xy
163+
164+
Matrices
165+
--------
166+
167+
.. autosummary::
168+
:toctree: generated/
169+
:nosignatures:
170+
171+
~Graph.adjacency_matrix
172+
~Graph.connectivity_matrix
173+
~Graph.degree_matrix
174+
~Graph.laplacian_matrix
175+
176+
Mappings
177+
--------
178+
179+
.. autosummary::
180+
:toctree: generated/
181+
:nosignatures:
182+
183+
~Graph.gkey_node
184+
~Graph.node_gkey
185+
~Graph.node_index
186+
~Graph.edge_index
187+
~Graph.index_node
188+
~Graph.index_edge
189+
190+
Utilities
191+
---------
192+
193+
.. autosummary::
194+
:toctree: generated/
195+
:nosignatures:
196+
197+
~Graph.summary
198+
~Graph.copy
199+
~Graph.clear

0 commit comments

Comments
 (0)