Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8267363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:29:47+00:00 2026-06-08T05:29:47+00:00

Is there a Javascript library that produces consistent graph drawings (e.g. graph theory style

  • 0

Is there a Javascript library that produces consistent graph drawings (e.g. graph theory style graphs) in browsers?

By consistent, I mean that it produces an unique graph (same orientation and same positions of nodes) given a set of inputs (i.e. configurations of the nodes and edges).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T05:29:50+00:00Added an answer on June 8, 2026 at 5:29 am

    Most graph layout algorithms (except the completely deterministic ones like grid layout or the Reingold-Tilford tree layout) use some kind of random initialization. Since there is no way to set the seed of the random number generator explicitly in Javascript, it is very hard to coerce graph layout algorithms into being completely deterministic. Your best bet is probably to take an existing library in Javascript that can draw graphs (such as d3.js) and replace the calls to Math.random and similar to a pure Javascript-based random number generator for which you can set the seed explicitly. Setting the seed to the same value should then ensure that the same layout is generated for the same graph every time you run the algorithm.

    Implementations of Javascript random number generators can be found here, here or here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any Javascript library that could force an HTML node (mostly images and
is there any javascript library that provides me with a custom event as soon
If there is a javascript library that is licensed under a Copyleft license like
I'm wondering is there a JavaScript library available that would allow me to generate
Is there a jQuery plugin or javascript library that supports a genie animation effect
Is there a c# library that can help to write and indent Javascript code.
Does anyone know if there is a common javascript library to enable scrolling that
I'm looking for a javascript charting library that can display interactive bar graphs on
Is there a Javascript or some library that would create a datepicker for a
Is there a JavaScript library that allows to save strings as txt files, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.