Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.38 KB

File metadata and controls

36 lines (27 loc) · 1.38 KB

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