Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Graph visualization

Name: Anonymous 2010-12-06 15:54

I want to experiment with graphs but don't want deal with their visualization. What is the easiest way to visualize graphs? I heard about graphviz but never actually worked with it.
The main intention is to experiment with maze/dungeon generation for a simple exploration game.

Name: Anonymous 2010-12-06 16:03

pencil and paper

Name: [SOLVED] 2010-12-06 16:12

like y=3x+1? just plot it

Name: Anonymous 2010-12-06 16:21

no like this tree:
1- start with root
2- a- each node has p1 probability to branch into two
   b- each node has p2 probability to continue without branching
   c- each node has p3(=1-p1-p2) probability to be a leaf(dead end)
I want to run this many times for different p1 p2 p3 values, paper&pencil is nice but not very feasible.

Name: Anonymous 2010-12-06 16:37

(1 (2 3)
 4 5 ((7 8) 9)
 (10 (11 (12 13))) ((14 15) ((16 17))))

Name: Anonymous 2010-12-06 16:56

Pretty much just >>5
If you want you can indent it, sexps are definitely the easiest way to go

Name: Anonymous 2010-12-06 17:04

>>5
How does that work?

Name: Anonymous 2010-12-06 17:11

>>7
Read SICP.

Name: Anonymous 2010-12-06 17:15

>>5
you gotfor 6 dumbass!

Name: Anonymous 2010-12-06 17:19

>>5
How does that work?

Name: Anonymous 2010-12-06 17:20

>>9
(define insert-at
  (lambda (pos x list)
    (if (>= 0 pos) (cons x list)
        (cons (car list) (insert-at (- pos 1)
                                    x
                                    (cdr list))))))
(insert-at 4 6 '(1 (2 3)
                   4 5 ((7 8) 9)
                   (10 (11 (12 13))) ((14 15) ((16 17)))))

Name: Anonymous 2010-12-06 17:22

>>10
Read the fucking SICP, learn to LISP and Scheme, you'll be enlighted.

Name: Anonymous 2010-12-06 17:35

>>12
Or you could read a wikipedia article about trees.

Name: Anonymous 2010-12-06 17:44

>>1
I've used Graphviz for a graph to map visualization project and it worked well. You can generate the graph files yourself and render them with Graphviz or you can use the Graphviz library in your code. The hardest part about using Graphviz was the installation.

Name: Anonymous 2010-12-06 17:49

>>14
The ''faggot´´ way of doing it.

Name: Anonymous 2010-12-07 3:24

GNU S, AKA R

Don't change these.
Name: Email:
Entire Thread Thread List