Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Directed/undirected Graph Structures, A discussion on the topic.
dexter
post Sep 6 2005, 05:47 AM
Post #1


Advanced Member
*******

Group: Members
Posts: 142
Joined: 24-December 04
From: Queensland, Australia
Member No.: 2,902



On off-shoot of another topic:

QUOTE(hcwindclub)
I am sorry to ask that where I can find any information about implementation of mesh network topology? but easy to use? I am not familiar with the concept of "template" so what I found at Google is too difficult to absorb in a short time, and I need to finish my assignment at school in one month. Right now, I can't decide which data structure to implement topology, in order to easily search link such that I would know how many nodes neighbor a target node and which one sends and which one receives? especially when the topology is big and my algorithm need to search million times


QUOTE(dexter)
  Woah. You have to code a simulation of a mesh network in C++? Sounds to me like you're going to have to develop a graph structure to be able to deal with that.

It's a bit off-topic for this thread, though, you might want to start a new one and I'd certainly be interested to discuss it.

Anyway, in the meantime, I'll go and find some pages that I found really handy when I was doing pathfinding and had to build an undirected graph to store the nodes and their paths.


QUOTE(hcwindclub @ Sep 6 2005, 01:46 PM)
sorry, off-topic? I thought I wanna find the resource of such stuff so I can post here... but according to your reply, you seem to get a clue of what I am doing, great~~ I wanna build a physical network which I can test my QoS routing method on it. I need undirected graph for physical network and directed graph for routing record. I tried to use two linked list to maintain nodes' and links' status, but the performance was too awful... whenever I remove a node, I need to traverse all nodes and all links, plus modify any related link.... It is absolutely a crappy structure... and the worst is, I don't even know how it failed after three day running... too many linked list, I hate to trace the bug...

So, do you find any handy resource? I really appreciate your kindness!!!


This site has some interesting implementation ideas for graph structures. One thing to note is that they build it from previous objects on the page, so it won't be perfect as-is, and somewhat obfuscated:
Data Structures and Algorithms with Object-Oriented Design Patterns in C++

There are a -lot- of websites around with info about graphs, 'directed graph structure C++' in google brings up a lot of results.

I also found Sedgewick's 'Algorithms in C++' very useful, too, if you can get your hands on it.

With the graph representation, it looks like you've taken the linked list approach. In my particular implementation, I had an array of vertices(nodes) and an array of edges(links). A vertex containing specific information about that location, and an edge as two references of two nodes specifying a link from one node to another.

Although, you could always go down the path of representing the graph as a matrix. The other thing to take note of is that an undirected graph can also be represented by a directed graph.

Heh, this aggravated me for weeks while I was trying to find the perfect way to implement it.


Out of interest, define 'school'... it seems like a rather advanced topic.
Go to the top of the page
 
+Quote Post
hcwindclub
post Sep 10 2005, 08:32 AM
Post #2


Newbie
*

Group: Members
Posts: 6
Joined: 5-September 05
Member No.: 11,518



Thank you so much! But I have no time to digest so much information right now, I will keep tracking this issue after couple days. Thanks a lot.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Grand Theft Auto: San Andreas(40)
  2. Your Goal In Life?(87)
  3. General Discussion: Artificial Intelligence (AI)(33)
  4. How Long U Play Cod?(21)
  5. Muslims Not Allowed To Date(9)
  6. How To Make Firefox Load Faster + Known Firefox Tweaks(2)
  7. Pros And Cons Of Mac, Windows, And Linux(33)
  8. Are You A Gamer? How Are You Weight Wise?(39)
  9. Data Structures -- Linked List(8)
  10. Data Structures -- Linked List -- Reverse(4)
  11. Data Structures -- String -- Palindrome(5)
  12. Are Some Christians Pushing For A New Crusade?(7)
  13. Independent Kosovo(2)
  14. Trap17 Dynamic Recent Post/topic Image(17)
  15. Soccer Cancel For This Year(2)
  1. Help On Choosing Forum Discussion Category(5)
  2. I Think That They Should Start Making Boxers For Girls.(4)
  3. Free Newsgroups (based On Nntp Protocol)(0)
  4. Topic Not Posting [resolved](3)
  5. Post Your Banners Here(3)
  6. Forum Problem? Topic Disappeared Immediately [resolved](2)
  7. Flash, Php And Facebook Integration(0)
  8. Alex's 1,000th Post Topic(7)
  9. A Few Wrods With The Respectful Admins Of Www.qupis.com Free Hosting Service(1)
  10. Rpg In Delphi(2)
  11. Modifying The Topic Titles: To Be Or Not To Be?(2)
  12. Fun & Off-topic Forum(1)
  13. Readers And Writers Beware!(2)


 



- Lo-Fi Version Time is now: 8th September 2008 - 05:27 AM