Message Boards Message Boards

0
|
6769 Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Plotting a Graph from Pajek file

Posted 11 years ago
I imported the Pajek file into Mathematica as nodes and links, but I wanna plot it as a graph. I tried with GraphPlot command , but was not able to do it. Can anyone help me please. File attached to see my work

Thanks in advance ! 

Ammar 
POSTED BY: Ammar Tajeddin
4 Replies
Posted 11 years ago
Plotting a Graph from Pajek file
POSTED BY: Ammar Tajeddin
Do you have a very simple example? And your expected output? Without this it will be hard to give you a solution.
POSTED BY: Sander Huisman
Posted 11 years ago
Here is a simpler example, 20 nodes graph .net format (pajek) , the expected output is to plot this graph, that's what I want the help, couldn't get the output.  I really appreciate it ! 
 *Vertices 20
 1 "Node 0" 195.40515 -154.10416 0.0
 2 "Node 1" -16.400879 338.25812 0.0
 3 "Node 2" -184.99316 81.815735 0.0
 4 "Node 3" 101.79999 244.70361 0.0
 5 "Node 4" 358.4677 -55.35208 0.0
 6 "Node 5" 446.9801 -103.15411 0.0
 7 "Node 6" 323.1847 -58.150635 0.0
 8 "Node 7" -163.4891 232.44952 0.0
9 "Node 8" 111.74536 -266.89355 0.0
10 "Node 9" -293.13275 -487.2885 0.0
11 "Node 10" 345.67194 -56.05014 0.0
12 "Node 11" -415.23004 -396.58636 0.0
13 "Node 12" 323.74213 279.68622 0.0
14 "Node 13" -97.3721 -183.70563 0.0
15 "Node 14" 465.98364 457.74353 0.0
16 "Node 15" -113.41733 235.47607 0.0
17 "Node 16" 429.16302 -327.18362 0.0
18 "Node 17" 355.8092 -459.30402 0.0
19 "Node 18" 205.56714 -463.26425 0.0
20 "Node 19" -336.67316 -42.74472 0.0
*Edges
1 2 1.0
1 3 1.0
2 3 1.0
2 4 1.0
3 5 1.0
3 6 1.0
4 1 1.0
4 6 1.0
5 7 1.0
5 12 1.0
6 7 1.0
6 8 1.0
7 8 1.0
7 9 1.0
8 9 1.0
8 10 1.0
9 10 1.0
9 11 1.0
10 11 1.0
10 12 1.0
11 8 1.0
11 12 1.0
12 13 1.0
12 14 1.0
13 14 1.0
13 15 1.0
14 15 1.0
14 16 1.0
15 16 1.0
15 17 1.0
16 10 1.0
16 17 1.0
17 4 1.0
17 18 1.0
18 19 1.0
18 20 1.0
19 1 1.0
19 20 1.0
20 1 1.0
20 2 1.0
POSTED BY: Ammar Tajeddin
Posted 11 years ago
Just got it now how to plot my Pajek graph, drag and drop works fine. 
Here is how it looks like after the plot 

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

Group Abstract Group Abstract