ADescribe · describe.network
Network description (size, degrees, clustering, centrality)
Who is connected to whom — how big and dense is the network, how clustered, and which nodes are central?
Describes a network given as an edge list (one row per edge, with the two ends in two columns), with an optional node table for labels and attributes. Reports size and density, the degree distribution, separate parts, reciprocity for directed networks, clustering (transitivity and the average local clustering), degree assortativity, distances (average and diameter), and per-node centrality: degree, betweenness, closeness, eigenvector and PageRank. The app checks the edge list first (missing ends, self-loops, repeated edges, isolated nodes, ids missing from the node table), draws the network as a map and an adjacency matrix, and saves a node table you can keep as a dataset.
A real result
Example “Blocks defaults”, recorded in both engines. In the app, “Try this example” loads it into Analyze.
A undirected network of 36 nodes and 98 edges (density 0.156); 1 part(s), the largest with 36 nodes.
- Nodes
- 36
- Edges
- 98
- Density
- 0.1556
- Separate parts
- 1
- Transitivity
- 0.2073
- Degree assortativity
- −0.1870
Plots
View data
| From | Part | Node | Degree | To | Weight | x | y |
|---|---|---|---|---|---|---|---|
| 0 | part 1 | p01 | 5 | 5 | 2.300 | 0.2119 | −0.2408 |
| 0 | part 1 | p02 | 6 | 6 | 1.960 | −0.1900 | −0.6998 |
| 0 | part 1 | p03 | 9 | 11 | 1.130 | −0.1845 | −0.4055 |
| 0 | part 1 | p04 | 5 | 15 | 0.5200 | −0.4254 | −0.4638 |
| 0 | part 1 | p05 | 4 | 32 | 1.040 | −0.1812 | −1 |
| 1 | part 1 | p06 | 7 | 2 | 1.820 | 0.0352 | −0.5426 |
| 1 | part 1 | p07 | 3 | 3 | 1.610 | 0.1284 | −0.7370 |
| 1 | part 1 | p08 | 5 | 4 | 2.390 | −0.2899 | −0.5076 |
| 1 | part 1 | p09 | 4 | 5 | 1.920 | −0.3873 | −0.7101 |
| 1 | part 1 | p10 | 6 | 9 | 0.8100 | −0.2812 | −0.7735 |
| 1 | part 1 | p11 | 2 | 11 | 0.6900 | −0.0229 | −0.7698 |
| 2 | part 1 | p12 | 8 | 5 | 0.9800 | −0.0552 | −0.3536 |
| 2 | part 1 | p13 | 6 | 6 | 1.880 | 0.0555 | 0.8281 |
| 2 | part 1 | p14 | 2 | 8 | 1.110 | 0.5821 | 0.9136 |
| 2 | part 1 | p15 | 7 | 9 | 1.640 | 0.0446 | 0.6711 |
| 2 | part 1 | p16 | 7 | 10 | 1.570 | 0.0672 | 0.2631 |
| 2 | part 1 | p17 | 4 | 21 | 1.100 | −0.2158 | 0.7160 |
| 2 | part 1 | p18 | 2 | 33 | 0.6900 | 0.2346 | 0.9191 |
| 2 | part 1 | p19 | 5 | 35 | 0.7600 | −0.1814 | 0.5104 |
| 3 | part 1 | p20 | 7 | 7 | 0.8200 | 0.2684 | 0.5586 |
| 3 | part 1 | p21 | 8 | 8 | 0.5300 | −0.0226 | 0.4294 |
| 3 | part 1 | p22 | 4 | 9 | 1.820 | −0.3091 | 0.2217 |
| 3 | part 1 | p23 | 7 | 29 | 1.510 | 0.0862 | 0.5238 |
| 4 | part 1 | p24 | 5 | 6 | 1.610 | 0.3593 | 0.7552 |
| 4 | part 1 | p25 | 7 | 8 | 0.7500 | −0.2040 | −0.0692 |
| 4 | part 1 | p26 | 4 | 9 | 2.300 | 0.1002 | 0.1600 |
| 5 | part 1 | p27 | 4 | 7 | 0.5200 | 0.3560 | −0.2187 |
| 5 | part 1 | p28 | 7 | 9 | 1.960 | 0.0284 | 0.0103 |
| 5 | part 1 | p29 | 6 | 26 | 2.180 | −0.1032 | −0.1302 |
| 5 | part 1 | p30 | 8 | 31 | 2.300 | −0.1258 | 0.0778 |
| 7 | part 1 | p31 | 6 | 9 | 1.120 | 0.1835 | 0.0367 |
| 7 | part 1 | p32 | 4 | 11 | 1.430 | 0.0758 | −0.2869 |
| 7 | part 1 | p33 | 6 | 24 | 1.280 | 0.2297 | 0.2908 |
| 8 | part 1 | p34 | 7 | 11 | 2.380 | 0.1095 | −0.0263 |
| 10 | part 1 | p35 | 4 | 11 | 1.630 | 0.3588 | 0.0270 |
| 11 | part 1 | p36 | 5 | 15 | 1.990 | −0.3356 | 0.0227 |
| 11 | — | — | — | 28 | 2.330 | — | — |
| 11 | — | — | — | 30 | 1.150 | — | — |
| 12 | — | — | — | 16 | 1.980 | — | — |
| 12 | — | — | — | 17 | 1.480 | — | — |
| 12 | — | — | — | 18 | 1.950 | — | — |
| 12 | — | — | — | 19 | 1.160 | — | — |
| 12 | — | — | — | 22 | 0.8900 | — | — |
| 12 | — | — | — | 23 | 0.7400 | — | — |
| 13 | — | — | — | 19 | 2.450 | — | — |
| 13 | — | — | — | 23 | 1.780 | — | — |
| 14 | — | — | — | 15 | 2.260 | — | — |
| 14 | — | — | — | 16 | 0.8700 | — | — |
| 14 | — | — | — | 18 | 1.010 | — | — |
| 14 | — | — | — | 19 | 2.470 | — | — |
| 14 | — | — | — | 20 | 2.440 | — | — |
| 14 | — | — | — | 22 | 2.250 | — | — |
| 14 | — | — | — | 23 | 0.6500 | — | — |
| 15 | — | — | — | 18 | 2.200 | — | — |
| 15 | — | — | — | 19 | 1.450 | — | — |
| 15 | — | — | — | 20 | 1.030 | — | — |
| 15 | — | — | — | 22 | 2.050 | — | — |
| 16 | — | — | — | 21 | 1.770 | — | — |
| 16 | — | — | — | 22 | 1.150 | — | — |
| 17 | — | — | — | 20 | 1.990 | — | — |
First 60 of 98 rows.
View data
| Degree k | Degree | Share of nodes with degree ≥ k |
|---|---|---|
| 2 | Degree | 1 |
| 3 | Degree | 0.9167 |
| 4 | Degree | 0.8889 |
| 5 | Degree | 0.6667 |
| 6 | Degree | 0.5000 |
| 7 | Degree | 0.3333 |
| 8 | Degree | 0.1111 |
| 9 | Degree | 0.0278 |
View data
| Column | Part | Node | Order | Row | Weight |
|---|---|---|---|---|---|
| 5 | part 1 | p01 | 2 | 0 | 2.300 |
| 6 | part 1 | p02 | 11 | 0 | 1.960 |
| 11 | part 1 | p03 | 20 | 0 | 1.130 |
| 15 | part 1 | p04 | 29 | 0 | 0.5200 |
| 32 | part 1 | p05 | 5 | 0 | 1.040 |
| 2 | part 1 | p06 | 14 | 1 | 1.820 |
| 3 | part 1 | p07 | 15 | 1 | 1.610 |
| 4 | part 1 | p08 | 19 | 1 | 2.390 |
| 5 | part 1 | p09 | 22 | 1 | 1.920 |
| 9 | part 1 | p10 | 24 | 1 | 0.8100 |
| 11 | part 1 | p11 | 27 | 1 | 0.6900 |
| 5 | part 1 | p12 | 33 | 2 | 0.9800 |
| 6 | part 1 | p13 | 1 | 2 | 1.880 |
| 8 | part 1 | p14 | 9 | 2 | 1.110 |
| 9 | part 1 | p15 | 12 | 2 | 1.640 |
| 10 | part 1 | p16 | 28 | 2 | 1.570 |
| 21 | part 1 | p17 | 30 | 2 | 1.100 |
| 33 | part 1 | p18 | 32 | 2 | 0.6900 |
| 35 | part 1 | p19 | 0 | 2 | 0.7600 |
| 7 | part 1 | p20 | 3 | 3 | 0.8200 |
| 8 | part 1 | p21 | 7 | 3 | 0.5300 |
| 9 | part 1 | p22 | 18 | 3 | 1.820 |
| 29 | part 1 | p23 | 23 | 3 | 1.510 |
| 6 | part 1 | p24 | 35 | 4 | 1.610 |
| 8 | part 1 | p25 | 4 | 4 | 0.7500 |
| 9 | part 1 | p26 | 8 | 4 | 2.300 |
| 7 | part 1 | p27 | 16 | 5 | 0.5200 |
| 9 | part 1 | p28 | 21 | 5 | 1.960 |
| 26 | part 1 | p29 | 25 | 5 | 2.180 |
| 31 | part 1 | p30 | 26 | 5 | 2.300 |
| 9 | part 1 | p31 | 31 | 7 | 1.120 |
| 11 | part 1 | p32 | 34 | 7 | 1.430 |
| 24 | part 1 | p33 | 6 | 7 | 1.280 |
| 11 | part 1 | p34 | 10 | 8 | 2.380 |
| 11 | part 1 | p35 | 13 | 10 | 1.630 |
| 15 | part 1 | p36 | 17 | 11 | 1.990 |
| 28 | — | — | — | 11 | 2.330 |
| 30 | — | — | — | 11 | 1.150 |
| 16 | — | — | — | 12 | 1.980 |
| 17 | — | — | — | 12 | 1.480 |
| 18 | — | — | — | 12 | 1.950 |
| 19 | — | — | — | 12 | 1.160 |
| 22 | — | — | — | 12 | 0.8900 |
| 23 | — | — | — | 12 | 0.7400 |
| 19 | — | — | — | 13 | 2.450 |
| 23 | — | — | — | 13 | 1.780 |
| 15 | — | — | — | 14 | 2.260 |
| 16 | — | — | — | 14 | 0.8700 |
| 18 | — | — | — | 14 | 1.010 |
| 19 | — | — | — | 14 | 2.470 |
| 20 | — | — | — | 14 | 2.440 |
| 22 | — | — | — | 14 | 2.250 |
| 23 | — | — | — | 14 | 0.6500 |
| 18 | — | — | — | 15 | 2.200 |
| 19 | — | — | — | 15 | 1.450 |
| 20 | — | — | — | 15 | 1.030 |
| 22 | — | — | — | 15 | 2.050 |
| 21 | — | — | — | 16 | 1.770 |
| 22 | — | — | — | 16 | 1.150 |
| 20 | — | — | — | 17 | 1.990 |
First 60 of 98 rows.
Most central nodes (by PageRank)
| Node | Degree | PageRank | Eigenvector | Clustering | Betweenness | Closeness |
|---|---|---|---|---|---|---|
| p30 | 8 | 0.0431 | 0.2391 | 0.1071 | 0.0936 | 0.4930 |
| p12 | 8 | 0.0425 | 0.1873 | 0.0714 | 0.1091 | 0.4930 |
| p21 | 8 | 0.0418 | 0.3388 | 0.2500 | 0.0825 | 0.4667 |
| p06 | 7 | 0.0396 | 0.1436 | 0.1905 | 0.0503 | 0.4430 |
| p03 | 9 | 0.0395 | 0.1223 | 0.0833 | 0.1434 | 0.5000 |
| p15 | 7 | 0.0378 | 0.3161 | 0.3810 | 0.0226 | 0.4321 |
| p25 | 7 | 0.0372 | 0.2618 | 0.2381 | 0.0461 | 0.4667 |
| p28 | 7 | 0.0366 | 0.1678 | 0.1429 | 0.0465 | 0.4545 |
| p16 | 7 | 0.0362 | 0.2964 | 0.3333 | 0.0802 | 0.4861 |
| p20 | 7 | 0.0341 | 0.2136 | 0.2857 | 0.0819 | 0.4430 |
| p23 | 7 | 0.0328 | 0.2731 | 0.2857 | 0.0460 | 0.4430 |
| p10 | 6 | 0.0326 | 0.1061 | 0.4667 | 0.0196 | 0.4023 |
| p02 | 6 | 0.0312 | 0.1090 | 0.3333 | 0.0260 | 0.4217 |
| p29 | 6 | 0.0301 | 0.1925 | 0.2667 | 0.0209 | 0.4605 |
| p34 | 7 | 0.0297 | 0.1650 | 0.1429 | 0.0958 | 0.4930 |
| p13 | 6 | 0.0294 | 0.1345 | 0.1333 | 0.0257 | 0.3763 |
| p36 | 5 | 0.0281 | 0.2292 | 0.3000 | 0.0318 | 0.4861 |
| p19 | 5 | 0.0276 | 0.1939 | 0.1000 | 0.0370 | 0.4375 |
| p05 | 4 | 0.0251 | 0.0693 | 0.1667 | 0.0047 | 0.3271 |
| p27 | 4 | 0.0251 | 0.0979 | 0.1667 | 0.0147 | 0.4118 |
| p01 | 5 | 0.0244 | 0.1014 | 0.1000 | 0.0572 | 0.4605 |
| p33 | 6 | 0.0243 | 0.1386 | 0.1333 | 0.0684 | 0.4861 |
| p31 | 6 | 0.0240 | 0.1226 | 0.2000 | 0.0487 | 0.4667 |
| p32 | 4 | 0.0237 | 0.1382 | 0.1667 | 0.0104 | 0.4321 |
| p04 | 5 | 0.0223 | 0.0898 | 0.2000 | 0.0277 | 0.3977 |
Network checks
| Check | Count |
|---|---|
| Edge rows | 101 |
| Edge rows left out (missing source, target or weight) | 1 |
| Self-loops | 1 |
| Repeated edges merged | 1 |
| Isolated nodes | 0 |
| Separate parts | 1 |
- 1 of 101 rows were left out because a value was missing.
- 1 edge(s) join a node to itself; measures on the simple network leave them out.
- 1 edge(s) repeat a pair listed earlier; the simple network merges them and adds their weights.
A undirected network of 36 nodes and 98 edges (density 0.156); 1 part(s), the largest with 36 nodes.
- Nodes
- 36
- Edges
- 98
- Density
- 0.1556
- Separate parts
- 1
- Transitivity
- 0.2073
- Degree assortativity
- −0.1870
To keep this page light, the plots are shown once, under the R tab.
Most central nodes (by PageRank)
| Node | Degree | PageRank | Eigenvector | Clustering | Betweenness | Closeness |
|---|---|---|---|---|---|---|
| p30 | 8 | 0.0431 | 0.2391 | 0.1071 | 0.0936 | 0.4930 |
| p12 | 8 | 0.0425 | 0.1873 | 0.0714 | 0.1091 | 0.4930 |
| p21 | 8 | 0.0418 | 0.3388 | 0.2500 | 0.0825 | 0.4667 |
| p06 | 7 | 0.0396 | 0.1436 | 0.1905 | 0.0503 | 0.4430 |
| p03 | 9 | 0.0395 | 0.1223 | 0.0833 | 0.1434 | 0.5000 |
| p15 | 7 | 0.0378 | 0.3161 | 0.3810 | 0.0226 | 0.4321 |
| p25 | 7 | 0.0372 | 0.2618 | 0.2381 | 0.0461 | 0.4667 |
| p28 | 7 | 0.0366 | 0.1678 | 0.1429 | 0.0465 | 0.4545 |
| p16 | 7 | 0.0362 | 0.2964 | 0.3333 | 0.0802 | 0.4861 |
| p20 | 7 | 0.0341 | 0.2136 | 0.2857 | 0.0819 | 0.4430 |
| p23 | 7 | 0.0328 | 0.2731 | 0.2857 | 0.0460 | 0.4430 |
| p10 | 6 | 0.0326 | 0.1061 | 0.4667 | 0.0196 | 0.4023 |
| p02 | 6 | 0.0312 | 0.1090 | 0.3333 | 0.0260 | 0.4217 |
| p29 | 6 | 0.0301 | 0.1925 | 0.2667 | 0.0209 | 0.4605 |
| p34 | 7 | 0.0297 | 0.1650 | 0.1429 | 0.0958 | 0.4930 |
| p13 | 6 | 0.0294 | 0.1345 | 0.1333 | 0.0257 | 0.3763 |
| p36 | 5 | 0.0281 | 0.2292 | 0.3000 | 0.0318 | 0.4861 |
| p19 | 5 | 0.0276 | 0.1939 | 0.1000 | 0.0370 | 0.4375 |
| p05 | 4 | 0.0251 | 0.0693 | 0.1667 | 0.0047 | 0.3271 |
| p27 | 4 | 0.0251 | 0.0979 | 0.1667 | 0.0147 | 0.4118 |
| p01 | 5 | 0.0244 | 0.1014 | 0.1000 | 0.0572 | 0.4605 |
| p33 | 6 | 0.0243 | 0.1386 | 0.1333 | 0.0684 | 0.4861 |
| p31 | 6 | 0.0240 | 0.1226 | 0.2000 | 0.0487 | 0.4667 |
| p32 | 4 | 0.0237 | 0.1382 | 0.1667 | 0.0104 | 0.4321 |
| p04 | 5 | 0.0223 | 0.0898 | 0.2000 | 0.0277 | 0.3977 |
Network checks
| Check | Count |
|---|---|
| Edge rows | 101 |
| Edge rows left out (missing source, target or weight) | 1 |
| Self-loops | 1 |
| Repeated edges merged | 1 |
| Isolated nodes | 0 |
| Separate parts | 1 |
- 1 of 101 rows were left out because a value was missing.
- 1 edge(s) join a node to itself; measures on the simple network leave them out.
- 1 edge(s) repeat a pair listed earlier; the simple network merges them and adds their weights.
Do it in CodeSplash Run it on your own data. It's in the Experimental lane in the app.
Worked examples in the app
- Blocks defaultsgraph_blocks_edges · source: from · target: to · weight: strength
- Blocks node tablegraph_blocks_edges · source: from · target: to · weight: strength
- Blocks unweightedgraph_blocks_edges · source: from · target: to · weight: strength
- Directed followsgraph_directed · source: follower · target: followed
- Karate clubgraph_karate · source: member_a · target: member_b · weight: contexts
- Karate unweightedgraph_karate · source: member_a · target: member_b
- Distances skippedgraph_karate · source: member_a · target: member_b
- Degenerate all nagraph_blocks_edges · source: from · target: to · weight: strength
In the guides
Where it sits in the decision guides
- Type: structured (tabular), unstructured (text, images, audio, video), time series / sequential, graph / relational · DS & ML Decision Guide · Key data characteristics — what influences method choice
- Structure: independent, hierarchical / grouped, temporal / spatial, networked · DS & ML Decision Guide · Key data characteristics — what influences method choice
- EDA (correlation, distributions) · DS & ML Decision Guide · Describe — summarize and visualize
What you need
- Source (from)categorical / numeric · 1 column
- The node at one end of each edge: a name or id. For directed networks, where the edge starts.
- Target (to)categorical / numeric · 1 column
- The node at the other end. For directed networks, where the edge points.
- Edge weightnumeric · 0–1 column
- Optional strength of each tie (calls, trades, co-authored papers). Repeated edges add their weights.
Choices you make
options
- Directed edgesdefault off
On when each edge points from source to target (follows, citations, payments); off for mutual ties.
- Node tabledefault —
Optional dataset with one row per node: its id, a label to color by and attributes, saved with the results.
statistics
- Use weightsdefault on
Strength, eigenvector centrality and PageRank use the edge weights. Distances always count steps.
- PageRank dampingdefault 0.85
Chance a random walker follows an edge rather than jumping anywhere; 0.85 is the usual choice.
Advanced
- Largest network for distancesdefault 5000
Betweenness, closeness and distances need one search per node; above this many nodes they are skipped.
Checks and remedies
CodeSplash checks each testable assumption on every run and shows the result on the card; premises the data can’t test are marked. If a check fails, these are the ways forward.
Every tie is listedNot checked from data: state why it holds
Missing edges look like absent ties; a sampled or partly observed network understates degrees and clustering.
One kind of tieNot checked from data: state why it holds
All edges mean the same relation (friendship, trade); mixing kinds blurs every measure.
What it reports
- n_nodes
- How many distinct ids appear in the edge list or the node table.
- n_edges
- Distinct pairs of different nodes in the simple network (a directed network counts A→B and B→A separately).
- n_edge_rows
- Usable rows of the edge list: rows with both ends (and a weight, when one is bound), before merging repeats.
- density
- Edges present as a share of all possible pairs: m / (n(n−1)/2), or m / (n(n−1)) when directed.
- mean_degree
- How many other nodes a node is tied to; when directed, in-degree counts ties received and out-degree ties sent.
- median_degree
- How many other nodes a node is tied to; when directed, in-degree counts ties received and out-degree ties sent.
- max_degree
- How many other nodes a node is tied to; when directed, in-degree counts ties received and out-degree ties sent.
- max_in_degree
- How many other nodes a node is tied to; when directed, in-degree counts ties received and out-degree ties sent.
- max_out_degree
- How many other nodes a node is tied to; when directed, in-degree counts ties received and out-degree ties sent.
- reciprocity
- Share of directed edges whose reverse edge is also present: how often a tie is returned.
- components
- Groups of nodes linked by some path, ignoring direction; nodes in different parts can't reach each other.
- largest_component
- Groups of nodes linked by some path, ignoring direction; nodes in different parts can't reach each other.
- largest_share
- Groups of nodes linked by some path, ignoring direction; nodes in different parts can't reach each other.
- isolates
- A node with no edge to any other node, usually from the node table or with only a self-loop.
- self_loops
- An edge from a node to itself; counted in the checks and left out of the measures.
- duplicate_edges
- A row naming a pair listed earlier (either way round when undirected); merged into one edge, weights added.
- triangles
- Sets of three nodes all tied to each other; the building block of clustering. Direction is ignored.
- transitivity
- Share of connected triples (A–B–C) that close into a triangle: how often a friend of a friend is a friend.
- avg_clustering
- For one node, the share of its neighbor pairs that are tied; the average over all nodes counts nodes below two neighbors as 0.
- assortativity
- Correlation between the degrees at the two ends of each edge: positive when hubs link to hubs, negative when hubs link to small nodes.
- degree_centralization
- How far the network is from a star: summed gaps to the top degree over the most a star could have, from 0 (even) to 1.
- avg_path_length
- Mean number of steps on a shortest path, over all pairs that can reach each other.
- diameter
- The longest shortest path, in steps, between any two nodes that can reach each other.
- max_betweenness
- Share of shortest paths between other pairs that pass through a node (0 to 1): high for brokers between groups.
- max_closeness
- How near a node is to the others: reachable nodes over summed distances, scaled down when it reaches only part of the network.
- max_eigenvector
- A node is central when its neighbors are central: the leading eigenvector of the adjacency matrix, scaled to length 1.
- max_pagerank
- Share of time a random walker spends at a node, following edges or jumping anywhere; sums to 1 over all nodes.
Per group, level or term: degree[<node>], in_degree[<node>], out_degree[<node>], clustering[<node>], betweenness[<node>], closeness[<node>], eigenvector[<node>], pagerank[<node>]
Python and R
Python and R agree to 6 decimals (relative tolerance 1e-8). Python uses numpy, pandas, codesplash; R uses jsonlite, nanoparquet, codesplashr.
Default traps between the two languages
- Counts, degrees, clustering, distances and betweenness are exact in both engines (same breadth-first searches over the host's node order); eigenvector centrality and PageRank are power iterations to the same stopping rule, so they agree to rounding.
- The network map's coordinates (seeded Fruchterman–Reingold from the shared Wichmann–Hill stream) are drawn, not compared: summation order can move them in the last digits.
The exact script CodeSplash ran for example “Blocks defaults” · Python 3.13.5 · scipy 1.18.1 · pandas 3.1.0
# Network description (size, degrees, clustering, centrality)
# Generated by CodeSplash Analytics 1.0.0 on 2026-11-09 · method describe.network 1.0.0 · spec ef897a2feb3141bd
# Dataset: graph_blocks_edges (version 1)
# Runs on its own: outside the app, cs.publish() writes $CS_RESULT_PATH or prints the result JSON.
# %% Setup
import numpy as np
import codesplash as cs
from codesplash import graph as cg
from codesplash.graph import describe as gd
from codesplash.graph import layout as gl
# %% Network
# The app read the edge list once and wrote the network next to this run (graph/ in the output folder):
# nodes in a fixed order, the edges, and the simple network (self-loops left out, repeated edges merged with
# their weights added). Python and R read the same files, so both describe the same network.
out_dir = "target/academy-parity/run-8142/describe.network/blocks_defaults/out-python"
g = cg.read(out_dir)
warnings = list(g.warnings)
weighted = True and g.weighted
damping = 0.85
max_path_nodes = int(5000)
seed = 42
MAP_NODES = 2000 # largest network drawn as a map
MATRIX_NODES = 300 # largest network drawn as a matrix
PER_NODE = 200 # per-node values go into the result for networks up to this size
if weighted:
bad = int((g.edges["w"].to_numpy(dtype=float) <= 0).sum())
if bad:
cs.cs_error("CS_E_INVALID_VALUES", column="strength", requirement="positive for weighted measures (or turn off Use weights)", count=bad)
n = g.n
m = len(g.si)
meta = g.meta
# %% Measures
# Degrees, density, reciprocity, clustering and assortativity, then one breadth-first search per node for
# betweenness, closeness and distances (Brandes 2001), then eigenvector centrality and PageRank by power
# iteration. Definitions follow networkx; the twins are codesplash.graph.describe and codesplashr.
deg = gd.degrees(g)
cl = gd.clustering(g)
pa = gd.paths(g, max_path_nodes)
ev = gd.eigenvector(g, weighted)
pr = gd.pagerank(g, damping, weighted)
comp = gd.components(g)
if not ev["converged"]:
warnings.append(cs.cs_warning("CS_W_NO_CONVERGENCE", what="Eigenvector centrality"))
if not pr["converged"]:
warnings.append(cs.cs_warning("CS_W_NO_CONVERGENCE", what="PageRank"))
if pa is None:
warnings.append(f"Betweenness, closeness and distances were skipped: the network has more than {max_path_nodes} nodes.")
def nn(x):
"""A finite number, or None."""
x = float(x)
return x if np.isfinite(x) else None
degree = deg["degree"]
centralization = None
if not g.directed and n > 2:
centralization = float((degree.max() - degree).sum()) / ((n - 1) * (n - 2))
values = {
"n_nodes": n,
"n_edges": m,
"n_edge_rows": int(meta["n_edges"]),
"density": nn(gd.density(g)),
"mean_degree": float(degree.mean()),
"median_degree": float(np.median(degree)),
"max_degree": int(degree.max()),
"max_in_degree": int(deg["in_degree"].max()) if g.directed else None,
"max_out_degree": int(deg["out_degree"].max()) if g.directed else None,
"reciprocity": nn(gd.reciprocity(g)) if g.directed else None,
"components": int(meta["components"]),
"largest_component": int(meta["largest_component"]),
"largest_share": int(meta["largest_component"]) / n,
"isolates": int(meta["isolates"]),
"self_loops": int(meta["self_loops"]),
"duplicate_edges": int(meta["duplicate_edges"]),
"triangles": cl["triangles"],
"transitivity": cl["transitivity"],
"avg_clustering": cl["average"],
"assortativity": nn(gd.assortativity(g)),
"degree_centralization": centralization,
"avg_path_length": nn(pa["avg_path_length"]) if pa else None,
"diameter": nn(pa["diameter"]) if pa else None,
"max_betweenness": float(pa["betweenness"].max()) if pa else None,
"max_closeness": float(pa["closeness"].max()) if pa else None,
"max_eigenvector": float(ev["x"].max()),
"max_pagerank": float(pr["x"].max()),
}
if n <= PER_NODE:
for k, node in enumerate(g.node_id):
values[f"degree[{node}]"] = int(degree[k])
if g.directed:
values[f"in_degree[{node}]"] = int(deg["in_degree"][k])
values[f"out_degree[{node}]"] = int(deg["out_degree"][k])
values[f"clustering[{node}]"] = float(cl["local"][k])
if pa:
values[f"betweenness[{node}]"] = float(pa["betweenness"][k])
values[f"closeness[{node}]"] = float(pa["closeness"][k])
values[f"eigenvector[{node}]"] = float(ev["x"][k])
values[f"pagerank[{node}]"] = float(pr["x"][k])
# %% Node table
# One row per node (node_id first); the app can save it as a dataset ("Save node table as dataset").
label = g.nodes[g.label].astype(object).where(g.nodes[g.label].notna(), None).tolist() if g.label else None
xy = gl.fruchterman_reingold(g, seed) if n <= MAP_NODES else None
cols = {}
if label is not None:
cols[g.label] = label
cols["component"] = comp + 1
cols["degree"] = degree
if g.directed:
cols["in_degree"] = deg["in_degree"]
cols["out_degree"] = deg["out_degree"]
if g.weighted:
if g.directed:
cols["in_strength"] = deg["in_strength"]
cols["out_strength"] = deg["out_strength"]
else:
cols["strength"] = deg["strength"]
cols["clustering"] = cl["local"]
if pa:
cols["betweenness"] = pa["betweenness"]
cols["closeness"] = pa["closeness"]
cols["eigenvector"] = ev["x"]
cols["pagerank"] = pr["x"]
if xy is not None:
cols["map_x"], cols["map_y"] = xy
artifact = cg.write_nodes(out_dir, g, cols)
# %% Tables
order = np.lexsort((np.arange(n), -pr["x"]))[:25]
node_cols = [{"key": "node", "label": "Node"}]
if label is not None:
node_cols.append({"key": "label", "label": g.label})
node_cols += [{"key": "degree", "label": "Degree", "type": "integer"}, {"key": "pagerank", "label": "PageRank", "type": "number"},
{"key": "eigenvector", "label": "Eigenvector", "type": "number"}, {"key": "clustering", "label": "Clustering", "type": "number"}]
if pa:
node_cols += [{"key": "betweenness", "label": "Betweenness", "type": "number"}, {"key": "closeness", "label": "Closeness", "type": "number"}]
rows = []
for k in order.tolist():
r = {"node": g.node_id[k], "degree": int(degree[k]), "pagerank": float(pr["x"][k]), "eigenvector": float(ev["x"][k]), "clustering": float(cl["local"][k])}
if label is not None:
r["label"] = None if label[k] is None else str(label[k])
if pa:
r["betweenness"] = float(pa["betweenness"][k])
r["closeness"] = float(pa["closeness"][k])
rows.append(r)
checks = [
("Edge rows", int(meta["input_rows"])),
("Edge rows left out (missing source, target or weight)", int(meta["dropped_rows"])),
("Self-loops", int(meta["self_loops"])),
("Repeated edges merged", int(meta["duplicate_edges"])),
("Isolated nodes", int(meta["isolates"])),
("Separate parts", int(meta["components"])),
]
nt = meta.get("node_table")
if nt:
checks += [("Node table rows", int(nt["rows"])), ("Node table rows left out", int(nt["dropped_rows"])),
("Nodes not in the node table", int(nt["missing_ids"])), ("Node table nodes with no edges", int(nt["extra_ids"]))]
tables = [
{"key": "top_nodes", "title": "Most central nodes (by PageRank)", "columns": node_cols, "rows": rows},
{"key": "checks", "title": "Network checks", "columns": [{"key": "check", "label": "Check"}, {"key": "count", "label": "Count", "type": "integer"}],
"rows": [{"check": c, "count": k} for c, k in checks]},
]
# %% Charts
def padded(values, rows):
"""Node and edge columns share one chart table: shorter columns end in empty cells."""
vals = list(values.tolist() if hasattr(values, "tolist") else values)
return vals + [None] * (rows - len(vals))
group = [("(missing)" if v is None else str(v)) for v in label] if label is not None else [f"part {c + 1}" for c in comp]
group_title = g.label if label is not None else "Part"
charts = []
if xy is not None:
show = min(m, 20000)
rows_map = max(n, show)
charts.append(cs.chart("map", "network-graph", "Network map", {
"x": cs.col("x", padded(xy[0], rows_map), "numeric"),
"y": cs.col("y", padded(xy[1], rows_map), "numeric"),
"node": cs.col("Node", padded(g.node_id, rows_map), "categorical"),
"size": cs.col("Degree", padded(degree, rows_map), "numeric"),
"group": cs.col(group_title, padded(group, rows_map), "categorical"),
"from": cs.col("From", padded(g.si[:show], rows_map), "numeric"),
"to": cs.col("To", padded(g.sj[:show], rows_map), "numeric"),
"weight": cs.col("Weight", padded(g.sw[:show], rows_map), "numeric") if g.weighted else None,
}, controls={"directed": g.directed}, note=None if show == m else f"{show} of {m} edges drawn."))
else:
charts.append(cs.chart("map", "network-graph", "Network map", {}, note=f"The map is drawn for networks up to {MAP_NODES} nodes; this one has {n}."))
if g.directed:
k_in, p_in = gd.degree_ccdf(deg["in_degree"])
k_out, p_out = gd.degree_ccdf(deg["out_degree"])
ks, ps, series = list(k_in) + list(k_out), list(p_in) + list(p_out), ["In-degree"] * len(k_in) + ["Out-degree"] * len(k_out)
series_levels = ["In-degree", "Out-degree"]
else:
k_all, p_all = gd.degree_ccdf(degree)
ks, ps, series, series_levels = list(k_all), list(p_all), ["Degree"] * len(k_all), ["Degree"]
charts.append(cs.chart("degrees", "degree-ccdf", "Degree distribution", {
"degree": cs.col("Degree k", ks, "numeric"),
"share": cs.col("Share of nodes with degree ≥ k", ps, "numeric"),
"series": cs.col("Degree", series, "categorical", series_levels),
}))
if n <= MATRIX_NODES:
morder = sorted(range(n), key=lambda k: (group[k] == "(missing)", group[k], -int(degree[k]), k))
rows_mx = max(n, m)
charts.append(cs.chart("matrix", "adjacency-matrix", "Adjacency matrix", {
"row": cs.col("Row", padded(g.si, rows_mx), "numeric"),
"col": cs.col("Column", padded(g.sj, rows_mx), "numeric"),
"value": cs.col("Weight" if g.weighted else "Edge", padded(g.sw, rows_mx), "numeric"),
"node": cs.col("Node", padded(g.node_id, rows_mx), "categorical"),
"group": cs.col(group_title, padded(group, rows_mx), "categorical"),
"order": cs.col("Order", padded(morder, rows_mx), "numeric"),
}, controls={"directed": g.directed}))
# %% Result
kind = "directed" if g.directed else "undirected"
dens = "undefined" if values["density"] is None else f"{values['density']:.3f}"
summary = f"A {kind} network of {n} nodes and {m} edges (density {dens}); {values['components']} part(s), the largest with {values['largest_component']} nodes."
cs.publish({
"title": "Network description (size, degrees, clustering, centrality)",
"engine": cs.engine_info("numpy", "pandas"),
"n": n,
"summary": summary,
"statistics": [
{"key": "n_nodes", "label": "Nodes", "value": n, "format": "integer"},
{"key": "n_edges", "label": "Edges", "value": m, "format": "integer"},
{"key": "density", "label": "Density", "value": values["density"]},
{"key": "components", "label": "Separate parts", "value": values["components"], "format": "integer"},
{"key": "transitivity", "label": "Transitivity", "value": values["transitivity"]},
{"key": "assortativity", "label": "Degree assortativity", "value": values["assortativity"]},
],
"tables": tables,
"values": values,
"charts": charts,
"warnings": warnings,
"artifacts": [artifact],
})
The exact script CodeSplash ran for example “Blocks defaults” · R version 4.5.1 (2025-06-13)
# Network description (size, degrees, clustering, centrality)
# Generated by CodeSplash Analytics 1.0.0 on 2026-11-09 · method describe.network 1.0.0 · spec ef897a2feb3141bd
# Dataset: graph_blocks_edges (version 1)
# Runs on its own: outside the app, cs_publish() writes $CS_RESULT_PATH or prints the result JSON.
# %% Setup
library(codesplashr)
# %% Network
# The app read the edge list once and wrote the network next to this run (graph/ in the output folder):
# nodes in a fixed order, the edges, and the simple network (self-loops left out, repeated edges merged with
# their weights added). Python and R read the same files, so both describe the same network.
out_dir <- "target/academy-parity/run-8142/describe.network/blocks_defaults/out-r"
g <- cs_graph_read(out_dir)
warnings <- g$warnings
weighted <- TRUE && isTRUE(g$weighted)
damping <- 0.85
max_path_nodes <- as.integer(5000)
seed <- 42
MAP_NODES <- 2000 # largest network drawn as a map
MATRIX_NODES <- 300 # largest network drawn as a matrix
PER_NODE <- 200 # per-node values go into the result for networks up to this size
if (weighted) {
bad <- sum(as.numeric(g$edges[["w"]]) <= 0)
if (bad > 0) cs_error("CS_E_INVALID_VALUES", column = "strength", requirement = "positive for weighted measures (or turn off Use weights)", count = bad)
}
n <- g$n
m <- length(g$si)
meta <- g$meta
# %% Measures
# Degrees, density, reciprocity, clustering and assortativity, then one breadth-first search per node for
# betweenness, closeness and distances (Brandes 2001), then eigenvector centrality and PageRank by power
# iteration. Definitions follow networkx; the twins are codesplashr R/graph_describe.R and codesplash.
deg <- cs_graph_degrees(g)
cl <- cs_graph_clustering(g)
pa <- cs_graph_paths(g, max_path_nodes)
ev <- cs_graph_eigenvector(g, weighted)
pr <- cs_graph_pagerank(g, damping, weighted)
comp <- cs_graph_components(g)
if (!ev$converged) warnings <- c(warnings, cs_warning("CS_W_NO_CONVERGENCE", what = "Eigenvector centrality"))
if (!pr$converged) warnings <- c(warnings, cs_warning("CS_W_NO_CONVERGENCE", what = "PageRank"))
if (is.null(pa)) {
warnings <- c(warnings, sprintf("Betweenness, closeness and distances were skipped: the network has more than %d nodes.", max_path_nodes))
}
nn <- function(x) if (is.finite(x)) as.numeric(x) else NULL
degree <- deg$degree
centralization <- NULL
if (!isTRUE(g$directed) && n > 2) centralization <- sum(as.numeric(max(degree) - degree)) / ((n - 1) * (n - 2))
values <- list(
n_nodes = n,
n_edges = m,
n_edge_rows = as.integer(meta$n_edges),
density = nn(cs_graph_density(g)),
mean_degree = mean(as.numeric(degree)),
median_degree = stats::median(as.numeric(degree)),
max_degree = max(degree),
max_in_degree = if (isTRUE(g$directed)) max(deg$in_degree) else NULL,
max_out_degree = if (isTRUE(g$directed)) max(deg$out_degree) else NULL,
reciprocity = if (isTRUE(g$directed)) nn(cs_graph_reciprocity(g)) else NULL,
components = as.integer(meta$components),
largest_component = as.integer(meta$largest_component),
largest_share = as.integer(meta$largest_component) / n,
isolates = as.integer(meta$isolates),
self_loops = as.integer(meta$self_loops),
duplicate_edges = as.integer(meta$duplicate_edges),
triangles = cl$triangles,
transitivity = cl$transitivity,
avg_clustering = cl$average,
assortativity = nn(cs_graph_assortativity(g)),
degree_centralization = centralization,
avg_path_length = if (!is.null(pa)) nn(pa$avg_path_length) else NULL,
diameter = if (!is.null(pa)) nn(pa$diameter) else NULL,
max_betweenness = if (!is.null(pa)) max(pa$betweenness) else NULL,
max_closeness = if (!is.null(pa)) max(pa$closeness) else NULL,
max_eigenvector = max(ev$x),
max_pagerank = max(pr$x)
)
if (n <= PER_NODE) {
for (k in seq_len(n)) {
node <- g$node_id[k]
values[[sprintf("degree[%s]", node)]] <- degree[k]
if (isTRUE(g$directed)) {
values[[sprintf("in_degree[%s]", node)]] <- deg$in_degree[k]
values[[sprintf("out_degree[%s]", node)]] <- deg$out_degree[k]
}
values[[sprintf("clustering[%s]", node)]] <- cl$local[k]
if (!is.null(pa)) {
values[[sprintf("betweenness[%s]", node)]] <- pa$betweenness[k]
values[[sprintf("closeness[%s]", node)]] <- pa$closeness[k]
}
values[[sprintf("eigenvector[%s]", node)]] <- ev$x[k]
values[[sprintf("pagerank[%s]", node)]] <- pr$x[k]
}
}
# %% Node table
# One row per node (node_id first); the app can save it as a dataset ("Save node table as dataset").
label <- if (!is.null(g$label)) g$nodes[[g$label]] else NULL
xy <- if (n <= MAP_NODES) cs_graph_layout_fr(g, seed) else NULL
cols <- list()
if (!is.null(label)) cols[[g$label]] <- label
cols$component <- comp + 1L
cols$degree <- degree
if (isTRUE(g$directed)) {
cols$in_degree <- deg$in_degree
cols$out_degree <- deg$out_degree
}
if (isTRUE(g$weighted)) {
if (isTRUE(g$directed)) {
cols$in_strength <- deg$in_strength
cols$out_strength <- deg$out_strength
} else {
cols$strength <- deg$strength
}
}
cols$clustering <- cl$local
if (!is.null(pa)) {
cols$betweenness <- pa$betweenness
cols$closeness <- pa$closeness
}
cols$eigenvector <- ev$x
cols$pagerank <- pr$x
if (!is.null(xy)) {
cols$map_x <- xy$x
cols$map_y <- xy$y
}
artifact <- cs_graph_write_nodes(out_dir, g, cols)
# %% Tables
ord <- head(order(-pr$x, seq_len(n)), 25L)
node_cols <- list(list(key = "node", label = "Node"))
if (!is.null(label)) node_cols[[length(node_cols) + 1L]] <- list(key = "label", label = g$label)
node_cols <- c(node_cols, list(
list(key = "degree", label = "Degree", type = "integer"), list(key = "pagerank", label = "PageRank", type = "number"),
list(key = "eigenvector", label = "Eigenvector", type = "number"), list(key = "clustering", label = "Clustering", type = "number")
))
if (!is.null(pa)) {
node_cols <- c(node_cols, list(list(key = "betweenness", label = "Betweenness", type = "number"), list(key = "closeness", label = "Closeness", type = "number")))
}
rows <- lapply(ord, function(k) {
r <- list(node = g$node_id[k], degree = degree[k], pagerank = pr$x[k], eigenvector = ev$x[k], clustering = cl$local[k])
if (!is.null(label)) r$label <- if (is.na(label[k])) NULL else as.character(label[k])
if (!is.null(pa)) {
r$betweenness <- pa$betweenness[k]
r$closeness <- pa$closeness[k]
}
r
})
checks <- list(
list("Edge rows", as.integer(meta$input_rows)),
list("Edge rows left out (missing source, target or weight)", as.integer(meta$dropped_rows)),
list("Self-loops", as.integer(meta$self_loops)),
list("Repeated edges merged", as.integer(meta$duplicate_edges)),
list("Isolated nodes", as.integer(meta$isolates)),
list("Separate parts", as.integer(meta$components))
)
nt <- meta$node_table
if (!is.null(nt)) {
checks <- c(checks, list(
list("Node table rows", as.integer(nt$rows)), list("Node table rows left out", as.integer(nt$dropped_rows)),
list("Nodes not in the node table", as.integer(nt$missing_ids)), list("Node table nodes with no edges", as.integer(nt$extra_ids))
))
}
tables <- list(
list(key = "top_nodes", title = "Most central nodes (by PageRank)", columns = node_cols, rows = rows),
list(key = "checks", title = "Network checks", columns = list(list(key = "check", label = "Check"), list(key = "count", label = "Count", type = "integer")),
rows = lapply(checks, function(x) list(check = x[[1]], count = x[[2]])))
)
# %% Charts
# Node and edge columns share one chart table: shorter columns end in empty cells.
padded <- function(v, rows) c(v, rep(NA, rows - length(v)))
group <- if (!is.null(label)) ifelse(is.na(label), "(missing)", as.character(label)) else paste("part", comp + 1L)
group_title <- if (!is.null(label)) g$label else "Part"
charts <- list()
if (!is.null(xy)) {
show <- min(m, 20000L)
keep <- seq_len(show)
rows_map <- max(n, show)
charts[[length(charts) + 1L]] <- cs_chart("map", "network-graph", "Network map", list(
x = cs_col("x", padded(xy$x, rows_map), "numeric"),
y = cs_col("y", padded(xy$y, rows_map), "numeric"),
node = cs_col("Node", padded(g$node_id, rows_map), "categorical"),
size = cs_col("Degree", padded(degree, rows_map), "numeric"),
group = cs_col(group_title, padded(group, rows_map), "categorical"),
from = cs_col("From", padded(g$si[keep], rows_map), "numeric"),
to = cs_col("To", padded(g$sj[keep], rows_map), "numeric"),
weight = if (isTRUE(g$weighted)) cs_col("Weight", padded(g$sw[keep], rows_map), "numeric") else NULL
), controls = list(directed = isTRUE(g$directed)), note = if (show == m) NULL else sprintf("%d of %d edges drawn.", show, m))
} else {
charts[[length(charts) + 1L]] <- cs_chart("map", "network-graph", "Network map", list(), note = sprintf("The map is drawn for networks up to %d nodes; this one has %d.", MAP_NODES, n))
}
if (isTRUE(g$directed)) {
ci <- cs_graph_degree_ccdf(deg$in_degree)
co <- cs_graph_degree_ccdf(deg$out_degree)
ks <- c(ci$k, co$k)
ps <- c(ci$p, co$p)
series <- c(rep("In-degree", length(ci$k)), rep("Out-degree", length(co$k)))
series_levels <- c("In-degree", "Out-degree")
} else {
ca <- cs_graph_degree_ccdf(degree)
ks <- ca$k
ps <- ca$p
series <- rep("Degree", length(ca$k))
series_levels <- "Degree"
}
charts[[length(charts) + 1L]] <- cs_chart("degrees", "degree-ccdf", "Degree distribution", list(
degree = cs_col("Degree k", ks, "numeric"),
share = cs_col("Share of nodes with degree ≥ k", ps, "numeric"),
series = cs_col("Degree", series, "categorical", levels = series_levels)
))
if (n <= MATRIX_NODES) {
morder <- order(group == "(missing)", group, -degree, seq_len(n), method = "radix") - 1L
rows_mx <- max(n, m)
charts[[length(charts) + 1L]] <- cs_chart("matrix", "adjacency-matrix", "Adjacency matrix", list(
row = cs_col("Row", padded(g$si, rows_mx), "numeric"),
col = cs_col("Column", padded(g$sj, rows_mx), "numeric"),
value = cs_col(if (isTRUE(g$weighted)) "Weight" else "Edge", padded(g$sw, rows_mx), "numeric"),
node = cs_col("Node", padded(g$node_id, rows_mx), "categorical"),
group = cs_col(group_title, padded(group, rows_mx), "categorical"),
order = cs_col("Order", padded(morder, rows_mx), "numeric")
), controls = list(directed = isTRUE(g$directed)))
}
# %% Result
kind <- if (isTRUE(g$directed)) "directed" else "undirected"
dens <- if (is.null(values$density)) "undefined" else sprintf("%.3f", values$density)
summary <- sprintf("A %s network of %d nodes and %d edges (density %s); %d part(s), the largest with %d nodes.",
kind, n, m, dens, values$components, values$largest_component)
cs_publish(list(
title = "Network description (size, degrees, clustering, centrality)",
engine = cs_engine_info("jsonlite", "nanoparquet"),
n = n,
summary = summary,
statistics = list(
list(key = "n_nodes", label = "Nodes", value = n, format = "integer"),
list(key = "n_edges", label = "Edges", value = m, format = "integer"),
list(key = "density", label = "Density", value = values$density),
list(key = "components", label = "Separate parts", value = values$components, format = "integer"),
list(key = "transitivity", label = "Transitivity", value = values$transitivity),
list(key = "assortativity", label = "Degree assortativity", value = values$assortativity)
),
tables = tables,
values = values,
charts = charts,
warnings = warnings,
artifacts = list(artifact)
))
Sources
- Wasserman S, Faust K (1994). Social Network Analysis: Methods and Applications. Cambridge University Press.
- Newman MEJ (2010). Networks: An Introduction. Oxford University Press.
- Brandes U (2001). A faster algorithm for betweenness centrality. Journal of Mathematical Sociology 25(2):163–177.
- Newman MEJ (2002). Assortative mixing in networks. Physical Review Letters 89(20):208701.
- Watts DJ, Strogatz SH (1998). Collective dynamics of 'small-world' networks. Nature 393:440–442.
- Page L, Brin S, Motwani R, Winograd T (1999). The PageRank citation ranking: bringing order to the web. Stanford InfoLab technical report 1999-66.
- Bonacich P (1987). Power and centrality: a family of measures. American Journal of Sociology 92(5):1170–1182.
- Fruchterman TMJ, Reingold EM (1991). Graph drawing by force-directed placement. Software: Practice and Experience 21(11):1129–1164.
- Zachary WW (1977). An information flow model for conflict and fission in small groups. Journal of Anthropological Research 33(4):452–473.
From the CodeSplash method registry · describe.network v1.0.0.