Skip to content

Commit

Permalink
Prettier on README
Browse files Browse the repository at this point in the history
  • Loading branch information
curran committed Dec 4, 2024
1 parent 060a179 commit a16244e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,20 @@ This library is distributed only via [NPM](npmjs.com). Install by running
Require it in your code like this.

```javascript
import { Graph, serializeGraph, deserializeGraph, topologicalSort, shortestPath } from 'graph-data-structure';
import {
Graph,
serializeGraph,
deserializeGraph,
topologicalSort,
shortestPath,
} from 'graph-data-structure';
```

## Examples

### ABC

Start by creating a new **[Graph](#graph)** object.
Start by creating a new **[Graph](#graph)** object.

```javascript
var graph = new Graph();
Expand Down Expand Up @@ -68,7 +74,8 @@ Here's an example of topological sort with getting dressed (from Cormen et al. "

```javascript
const graph = new Graph();
graph.addEdge('socks', 'shoes')
graph
.addEdge('socks', 'shoes')
.addEdge('shirt', 'belt')
.addEdge('shirt', 'tie')
.addEdge('tie', 'jacket')
Expand Down

0 comments on commit a16244e

Please sign in to comment.