papers.adligo.com

AdjacencyMatrices

Author: Scott Morgan
Created: 2025-12-12
Edited: 2025-12-13
Id: 1.3.6.1.4.1.33097.1.0.20
Copywrite 2025 Adligo Inc


An AdjacencyMatrix represents Nodes#1.3.6.1.4.1.33097.1.0.14.0 (usually represented by circles) and Edges#1.3.6.1.4.1.33097.1.0.14.1 (usually represented by [curved] lines or arrows) which may belong to a single Graph#1.3.6.1.4.1.33097.1.0.14 or GraphSet#1.3.6.1.4.1.33097.1.0.15. They are square 2d Matrices.

Although Adjacency Matrices are often used to represent single NodeNetwork#1.3.6.1.4.1.33097.1.0.14. They may also represent a NodeNetworkSet#1.3.6.1.4.1.33097.1.0.15 of multiple NodeNetworks#1.3.6.1.4.1.33097.1.0.14 which are not connected by any Edges#1.3.6.1.4.1.33097.1.0.14.1. In other words, a NodeNetwork#1.3.6.1.4.1.33097.1.0.14 can be represented by an Adjacency Matrix, however an Adjacency Matrix it does not imply that only a single NodeNetwork#1.3.6.1.4.1.33097.1.0.14 exists in the matrix.

Attributes

Universe

u: The total number of slots in the matrix.

Rows

r: The total number rows (and columns) in the matrix.

Intersections

i: The total number of slots in the matrix which are marked as true indicating an Edge#1.3.6.1.4.1.33097.1.0.12.1

Compressed

1.3.6.1.4.1.33097.1.0.20.0

Directional

1.3.6.1.4.1.33097.1.0.20.1

Advantages / Pros

1.3.6.1.4.1.33097.1.0.20.2

Since AdjacencyMatrices provide a cross-referencing of the relations between the Nodes#1.3.6.1.4.1.33097.1.0.12.0 in a Graph#1.3.6.1.4.1.33097.1.0.14 they allow fast operations which would be slow in other data structures.

For Example;

What nodes does Nodes#1.3.6.1.4.1.33097.1.0.12.0 with NodeId#1.3.6.1.4.1.33097.1.0.12.0.0 ‘x’ reference?

What nodes (if any) reference Node#1.3.6.1.4.1.33097.1.0.12.0 with NodeId#1.3.6.1.4.1.33097.1.0.12.0.0 ‘x’?

Issues / Cons

1.3.6.1.4.1.33097.1.0.20.3

Performing a complete Walk of the matrix is expensive as you will encounter many non-adjacent segments of the matrix;

Although this can potentially be reduced with something like Implementation B and BinaryFractialRangeWalks the complete Walk will take some extra time.

Notes

This was moved under abstract since there could be multiple implementations (i.e.);

Implementation A)

A boolean 2D array

Implementation B)

Two Lists#1.3.6.1.4.1.33097.1.0.0 of BitSlotMaps#1.3.6.1.4.1.33097.1.1.3 one for the rows and one for the columns.

The two (or more) different implementations would provide vastly different asymptotic and exact performance.

Questions Comments:

Citations

https://en.wikipedia.org/wiki/Graph_theory

https://medium.com/basecs/a-gentle-introduction-to-graph-theory-77969829ead8

https://arxiv.org/pdf/2308.04512

https://en.wikipedia.org/wiki/Adjacency_matrix

https://en.wikipedia.org/wiki/Ramsey%27s_theorem

https://en.wikipedia.org/wiki/Combinatorics