Group Abstract Group Abstract

Message Boards Message Boards

How to generate random weighted graphs that obey the triangle inequality?

Attachments:
POSTED BY: Peter Burbery

You can generate vertices in as points in space (choose your dimension), then make edge weights as the Euclidean (or Manhattan, or...) distance between any pair of vertices with an edge between them. As a final step, ignore the locations of the vertices and just embed in two or three dimensions.

POSTED BY: Daniel Lichtblau
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard