Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
camillescott committed Mar 30, 2018
1 parent 1db71b6 commit 17a9a43
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions README.md
Expand Up @@ -8,13 +8,24 @@ network drawing API that covers the most use cases with sensible
defaults and simple style configuration. Currently, it supports
drawing graphs from NetworkX.

![graph](doc/default.png)
<div align="center">
<table>
<tr>
<td><center><img src="https://github.com/networkx/grave/raw/master/doc/default.png" width=50%></center><br></td>
<td>
<img src="https://travis-ci.org/networkx/grave.svg?branch=master)](https://travis-ci.org/networkx/grave"><br>
<a href='http://grave.readthedocs.io/en/latest/?badge=latest'>
<img src='http://readthedocs.org/projects/grave/badge/?version=latest' alt='Documentation Status' />
</a>
</td>
</tr>
</table>
</div>

## Example Usage

```python
import matplotlib.pyplot as plt
import networkx as nx
import network as nx
from networkx.algorithms.approximation.dominating_set import min_weighted_dominating_set

from grave import plot_network
Expand All @@ -32,7 +43,7 @@ def color_dominator_nodes(node_attrs):
return {'color': 'gray'}

fig, ax = plt.subplots()
plot_network(network, node_style=color_dominator_nodes)
plot_network(network, node_style=color_dominators)
plt.show()

```

0 comments on commit 17a9a43

Please sign in to comment.