sorry that i don't know i post on a correct place or not..=D

my question is: How can i use the adjacency matrix like
A B
A 0 1
B 1 0

and write it to form of adjacency list like

A -> B
B -> A

Hope you all understand my question ^^..thanks for advance

U mean, How to code this ??

U mean, How to code this ??

kinda..but an pseudocode will do..

i just able to figure out until here only

cout<<"Vertex                      Edge\n";
	 cout<<"======                      =====\n";
	 for(int i=0; i<size-1; i++)
	 {
             cout<<vertex[i]<<"         --->"<<endl;
             
             
             }

No one reply? or it is impossible to do so?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.