GithubHelp home page GithubHelp logo

psmccarty / dot-file-generator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.13 MB

A DOT (graph description language) dataset generator with example datasets

Python 100.00%
dataset dotfiles graph graph-algorithms gv graphviz-dot cities distance

dot-file-generator's Introduction

DOT-file-generator

A DOT (graph description language) dataset generator

Description

Need a dataset for a graph related algorithm assignment? I got you covered! dotConverter.py uses pygraphviz to convert a subset of the worldcities.csv found in https://simplemaps.com/data/world-cities into a valid DOT file suitable for all your graph needs. You are also welcome to use the prebuilt dot files I have made.

Getting Started

Dependencies

To use this program you will need pygraphviz. The installation give can by found on their website: pygraphviz

Excecuting program on Linux

  • Be in a directory with dotConverter.py, worldcities.csv, a CSV file with the city names and city IDs of the nodes in your graph, and a CSV with the edges of your graph ("city1","city2").
  • Type and enter the command "python3 dotConverter.py"
  • Give the program the path to your CSV file with city names and IDs
  • Chose if you would like to create a new file named 'desired_cities.csv' that contains the subset of worldcities.csv that you have selected
  • Give the program the path to your CSV file with edge information
  • Done! you should have the files 'cities.dot' and 'cities.png' in your current working directory

Acknowledgments

dot-file-generator's People

Contributors

psmccarty avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.