Solved

linked list (for network graph)

Posted on 2006-11-29
6
197 Views
Last Modified: 2010-04-15
hi,

Is it possible to struck linked at some certain points has more than one continue link?

for example, A network A-->B-->C then C can go both D and E at same time.......something like that

I search linked list examples, they always follow one by one sequence, so is it possible to set some certain situation has multiple path?
If yes, could you give me some sample code

thanks
   
0
Comment
Question by:rmtogether
  • 4
  • 2
6 Comments
 
LVL 45

Expert Comment

by:sunnycoder
ID: 18043184
Hi rmtogether,

It is possible but the resulting data structure would not technically be a linked list ... also the format/structure of this branchng node could be different from that of other nodes ... What you seem to be looking for here is a directed acyclic graph or DAG
http://en.wikipedia.org/wiki/Directed_acyclic_graph
http://www.nist.gov/dads/HTML/directedGraph.html

Cheers!
sunnycoder
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 18043203
Hi rmtogether,

> (for network graph)
A graph is a much better data structure to use for network graphs ... In case you have one way connections in the network, you can use a directed graph.
http://en.wikipedia.org/wiki/Graph_(data_structure)
http://en.wikipedia.org/wiki/Graph_theory
http://www.nist.gov/dads/HTML/graph.html


Cheers!
sunnycoder
0
 

Author Comment

by:rmtogether
ID: 18043213
thanks,

are there any actual program code examples ?
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 45

Accepted Solution

by:
sunnycoder earned 500 total points
ID: 18043217
Hi rmtogether,

http://www.nist.gov/dads/HTML/graph.html
has a section on implementations

Cheers!
sunnycoder
0
 

Author Comment

by:rmtogether
ID: 18050706
hi,

I am interested in http://www.cs.sunysb.edu/~algorith/files/graph-data-structures.shtml 
how can I find example codes of this problem? thanks in advance
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 18051388
The page has Implementations section near bottom of the page that has links to a few implementations
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
stack 22 166
c language help - file paths 7 147
Trouble linking program with -lcrypt 3 149
IIS Log files on Exchange 2013 server 6 118
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question