https://github.com/sphaso/exekiel
Run arbitrary code on arbitrary graphs!
https://github.com/sphaso/exekiel
Last synced: 4 days ago
JSON representation
Run arbitrary code on arbitrary graphs!
- Host: GitHub
- URL: https://github.com/sphaso/exekiel
- Owner: sphaso
- Created: 2018-06-03T08:37:27.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-03T08:49:01.000Z (about 8 years ago)
- Last Synced: 2025-10-28T10:20:29.252Z (8 months ago)
- Language: Elixir
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# exekiel
Run arbitrary code on arbitrary graphs!
Given a degree sequence and a GenServer, Exekiel:
- does an initial check to see if the sequence is graphical (Havel-Hakimi algorithm)
- builds the undirected, unlabeled graph
- adds each vertex to a `DynamicSupervisor` (`PoolManager`)
- sends to each vertex its adjacency list of pids (see below: `:set_node_list`)
- can run arbitrary on one or all nodes of the graph
Please add
```
def handle_call(:localstate, _, state) do
{:reply, state, state}
end
def handle_cast({:set_node_list, pids}, state) do
{:noreply, {state, pids}}
end
```
to your GenServer.
