can QuickGraph support these requirements? (includes database persistence support) -


would quickgraph able me out requirements below?

(a) want model graph of nodes , directional relationships between nodes - example model web pages/files linked under url, or modeling infrastructure , dependencies between hardware/software. library include methods such as

* node.getdirectparents()   //i.e. there more 1 direct parent node * node.getrootparents()  //i.e. traverse tree top root parent(s) given node * node.getdirectchildren() * node.getallchildren() 

(b) have persist data database - should support sql server , ideally sqlite well.

if support these requirement i'd love hear:

  1. any pointers parts of quickgraph dig into?

  2. what best concept re it's usage in terms of how use database persistence - simpler design assume every search/method works directly on database, or quickgraph support smarts able work in memory , "save" database changes @ appropriate point in time (e.g. ado.net datatable etc)

thanks in advance

greg,

a. yes, quickgraph can search nodes in manner. i've provided 1 example in other question.

b. far know, sql serialization not "built-in" quickgraph; you'd have build own custom implementation. since graphs represent more simple list of vertices , nodes, pretty hard accomplish automatically (and natively) in quickgraph, simple implement yourself.

  1. you might check out graphml serialization section in quickgraph source. may give hints started.
  2. quickgraph works in memory, doesn't work "against" persistent store , isn't designed (since persistent stores pretty slow generally). so, you'd need save information manually. however, can monitor different quickgraph events vertexadded, vertexremoved, edgeadded, , edgeremoved determine when graph has changed, , perform serialization @ times.

-doug


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -