문제

Is there a library or class available to create directed graphs, who's edges support capacity too? (Or I have to create it my self?).

I want to test max flow algorithm I recently learned

도움이 되었습니까?

해결책

A library with many data structures including Graphs is NGenerics (Dot Net 2.0)

Data Structures

General - Association, Bag, Graph, HashList, Heap, ObjectMatrix, PascalSet, SkipList, SortedList, Curve,
Mathematical - ComplexNumber, Matrix, Vectors
Queues - CircularQueue, Deque, PriorityQueue
Trees - BinaryTree, BinarySearchTree, GeneralTree, RedBlackTree, SplayTree

Link: http://code.google.com/p/ngenerics/
Codeproject Page: http://www.codeproject.com/KB/recipes/DotNet2Datastructures.aspx


Graph class by Microsoft (with weighted edges) - An Extensive Examination of Data Structures Using C# 2.0
Graph Class by Chris Forbes in .Net 2.0 (with user defined edge data) - Chris Forbes Graph Class

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top