An open API service indexing awesome lists of open source software.

https://github.com/roosoft/lightning_graph

Lightning Network Graph Analysis Tool
https://github.com/roosoft/lightning_graph

Last synced: 3 months ago
JSON representation

Lightning Network Graph Analysis Tool

Awesome Lists containing this project

README

          

# LightningGraph

Lightning Network graph analysis tool

## Create the graph

* Converts LND's describegraph output
* Imports this converted graph into Neo4j
* Adds info to nodes based on graph analysis

## Query the graph

* Get common peers
* Get community members
* Get farthest nodes
* Get cheapest routes

## How to use

using `config/config.exs`, returning `roosoft`'s node info

```bash
iex -S mix
```

```elixir
LightningGraph.Neo4j.get_connection
|> LightningGraph.Neo4j.Query.get_node_by_alias("roosoft")
```