Skip to content

A web-based tool for building majority graphs: add nodes, draw directed edges, use scientific and LaTeX-style symbols, and export the final diagram as an image or save it for later.

Notifications You must be signed in to change notification settings

deffonotfari/MajorityGraphDesigner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Majority Graph Designer

Majority Graph Designer is a simple web application for building majority (directed) graphs commonly used in voting and preference systems.
It allows you to create nodes, connect them with directed edges, use scientific and LaTeX-style notation, and export publication-ready diagrams.

Features

  • Add nodes displayed as circles
  • Create directed edges between nodes
  • Edit or delete edges through an interactive table
  • Support for scientific and LaTeX-like expressions
    (subscripts, superscripts, \frac{a}{b}, symbols such as λ, χ, etc.)
  • Export diagrams as JPG, PNG, or SVG
  • Save and load graphs using JSON files
  • Rendered in Times New Roman
  • Black-and-white output suitable for papers and reports

Getting Started

  1. Download or clone the project.
  2. Open index.html in a web browser.
  3. Add nodes using the Add Node form.
  4. Create edges using the Add Edge form.
  5. Modify or remove edges in the edges table.
  6. Export or save your diagram when finished.

Saving and Loading Graphs

  • Use Save Graph to download a JSON file containing nodes and edges.
  • Use Load Graph to import a previously saved JSON file and continue editing.

Export Options

  • JPG – suitable for documents and reports
  • PNG – high-quality image output
  • SVG – scalable vector-friendly wrapper around the exported graphic

About

A web-based tool for building majority graphs: add nodes, draw directed edges, use scientific and LaTeX-style symbols, and export the final diagram as an image or save it for later.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published