How big data carried graph theory into new dimensions
quantamagazine.org
quantamagazine.org
A hypergraph example of Les Miserables provided a good demonstration the d3-hypergraph package as well, but unfortunately the bl.ocks.org live examples aren't up anymore [2].
[0]: https://observablehq.com/@toja/hypercube-graphs
[1]: https://observablehq.com/@mootari/force-graph-trails
[2]: https://gist.github.com/AndreaSimeone/1e9ed38b46b95b7848c714...
The simulation playback in your link "Force Graph Trails" would be useful when trying to refine and balance the forces in a force graph; the small amount I've done felt like juggling parameters, searching in a space with too many dimensions.
Of course, Bayesian networks are acyclic, which hinders many conceptual applications.
The problem I most often come across is an apparent lack of guidance and out-of-the-box tooling on applying a time dimension to graphs. Has anyone here seen anything cool done on that front?
While it may not be obvious, graph and spatial data models are often represented with the same data structures at scale, but use somewhat different algorithms over those structures. The temporal bits are pretty vanilla unless you need bitemporal support or need to find unusually complex temporal patterns.
Graph Convolutional Recurrent Neural Network: Data-Driven Traffic Forecasting:
https://www.researchgate.net/publication/318316069_Graph_Con...
Loads of stuff can be expressed as a graph though. I'm interested in natural language corpora as graphs, but as others have mentioned, there's neural networks here too. That's whatever you fancy these days.
One time one researcher was showing a connectivity result "showing the small-world hypothesis", which is that for any two individuals there is a chain of connections linking them of at most 5 persons who know each other on a first-name basis (formulations differ). When I asked about how the logarithmic factor in the equation, he said "it's basically the same as constant".
But even more fundamentally, there are things such as 'scale economy'. The 'cost' of linking two nodes in a graph is typically more important when there are few edges than when there are many. So you shouldn't even be able to consider a typical sequence of graphs, but consider it with parameters that change value with n, which is completely out of reach of current research.
Another example is that big data is now trending for seismic research [1]. I'm not the author for this paper but currently we are working on offline big data for earthquakes and the results are very promising for prediction (several hours/days in advance i.e. not forecasting for months/years). Not only we use recorded big data for earthquakes in many earthquake prone countries e.g Turkey, but the technique that we are using namely time-frequency analysis requires big memory processing. Hopefully we can get fund for further research into the real-time big data collection and processing based on our offline data results. The main aim is to provide early detection and warning to the residences for the upcoming big earthquake (> 7 magnitude) with very good accuracy in a timely manner, to reduce the potential casualties.
[1]Big Data Seismology:
https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/2021...
Start with some seed graph. A rewriting rule is a transformation (swap) of a small-ish input graph to small-ish output. If you have rules that consume small simple inputs, and produce slightly larger outputs, then your seed can be small, and in the end, probably arbitrary. You always get a Big Bang.
Test for a (directed) subgraph isomorphism match of the input, then replace the matched subgraph with the output of the rule, which has the same directed boundary (interface) as the input. Graph Rewriting is an old subject that has a big literature developing in the 1990s [also see the Structure Mapping idea for analogy].
So which rewriting rules do we choose to build our universe? Well, that's a difficult decision that only a god could answer, so Wolfram on Olympus trumps them all and says let all rules apply. The number of directed graphs gets very big, very quickly, for any number of nodes.
For n=10, there are 341,260,431,952,972,580,352 graphs. The number of rules is roughly quadratic in that. Perhaps Wolfram expects the probability (rate) of application of a rule to depend inversely on its size and complexity (i.e. computational complexity of isomorphism, not quite the same thing, but related) - almost as if the world really is a simulation, and someone has to pay the AWS bill. So maybe n-2,3,4,5..6 are the practical limit, with a little unexpected tunneling from n>7.
You might notice that such graph rewriting depends on the order in which you make replacements when the input matches overlap, which is quite often, in any slightly dense graph. Wolfram handles this indeterminism by letting all matches happen, and branching the output, into what he calls a multi-way graph. This leads to a mind-boggling explosion in the size of the mind-bogglingly large graph.
Later, he allows paths that converge to the same outcome to recombine. So, if you weren't mind-boggled enough by (A000273)^2 explosion of digraph rules, NP-complete subgraph-isomorphism, followed by combinatorial branching, you now have to add always-and-everywhere subgraph isomorphism to match and collapse common outcomes in the multi-way graph, such that it becomes a DAGgy multiway graph.
That is all assumed, without any explanation, or any worries about NP-completeness, or computational resources. Then he starts his physics project ...
You may have noticed that indeterminism in graph rewriting has a relationship to indeterminism in QM. Branching the multiway graph is a bit like (no really exactly like) the Many Worlds Interpretation of QM.
If you consider rewriting computational steps as clicks of your compute-clock, then time is just distance down the multiway graph. Light cones are just the incoming here-reachable-from relation (past) and reachable-from-here relation (future) regions of your space-time graph. If you slice the graph by local time distance, then you get spacelike separation and physical distance [similar to Causal Graphs and Causal Dynamical Triangulation putative QG theories].
If you look at different converging paths, you get something like the Feynman path-integral formulation of QM. You might think the path integral depends on combining complex numbers, but we haven't mentioned complex numbers yet. In Wolfram's World (TM), the magnitude comes from the number of converging paths, and the phase comes from the different time steps along those paths.
Understanding that fascinating fact was the trigger for me to get Wolfram-curious - it is very interesting that the magnitude and phase of what we think of as complex numbers, can some from the number and length of converging paths in a DAG.
Then energy and momentum (all relativistic 4-vectors?) can be generated by fluxes of various paths through time-like and space-like surfaces cutting the graph. Commuting variables of quantum measurement also come from knowledge within the graph. Then you are off the the races for generating all of physics ... (according to SW) ...
Does generalizing to hypergraphs ease this in any way? The cost-benefit trade-off seems to be greater computational complexity for potentially unobserved insights.
- they provide a type for conclusions that span several nodes, eg a ring’s interior is a node that represents the existence of a ring (and so cache your analysis conclusions)
- they allow for generalization by placing nodes within a cell, eg “people who make $50k-$150k/yr” can be a collection of people within a cell (and we can talk about aggregated edges from that cell’s interior to other objects)
A third (but useful in a different context):
- logic can be represented as hypergraphs and deduction rules on them
See for instance, the ngraph coarsen procedure that reduces communities and their interrelations to single nodes connected to other community nodes [0].
But my intuition is that caching derived graphs and caching computed cells will be similar — and might even be two conceptual frameworks on equivalent data.
> Hypergraphs can be viewed as incidence structures. In particular, there is a bipartite "incidence graph" or "Levi graph" corresponding to every hypergraph
Where the relation is one-to-one, so there is a Levi graph for every hypergraph and the reverse is also true.