jaxvanyang / GraphViz

Web implementation for Stanford CS106L assignment 1 -- GraphViz.

Home Page:https://jaxvanyang.github.io/GraphViz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GraphViz

Cube

Web implementation for Stanford CS106L assignment 1 -- GraphViz.

Try to visualize the graph with a pleasing layout.

Live Demo

Input Format

The first line is the count of nodes in the graph.

The following lines are the edges in the graph. Each edge is represented by two integers, the source and destination node. The nodes are 0-indexed.

For example (triangle):

3
0 1
0 2
1 2

Output:

triangle

You can check out the api/graphs/ folder for more examples.

Development

Place your example graphs under api/graphs/ and then run sh/generate.sh to generate api/graphs.json. This file is used by the frontend to get the list of graphs.

About

Web implementation for Stanford CS106L assignment 1 -- GraphViz.

https://jaxvanyang.github.io/GraphViz


Languages

Language:JavaScript 65.9%Language:CSS 17.4%Language:HTML 12.8%Language:Shell 3.8%