Adaptor | Description | Requirements
of Containers |
Properties |
SequenceGraph | Converts an STL
vector or string into a BTL Graph |
1. random access via a []
operator 2. provide certain insert and erase functions |
1. Random access to vertices in O(1)
2. Insertion of vertices in O(1) 3. Insertion of links between vertices in O(n) |
SequenceGraph
WithEdges |
Converts an STL
vector or string into a BTL GraphWith Edges |
1. random access via
a [] operator 2. provide certain insert and erase functions |
1. All of the SequenceGraph properties
2. Random access to edges in O(1) 3. Insertion of edges in O(n) |
SortedGraph | Converts an STL
map into a BTL Graph |
1. Must provide the
same functionality as a STL map |
1. Provides random access to vertices in O(log n)
2. Insertion of vertices in O(log n) 3. Addition and removal of links between vertices in O(log n) |
SortedGraph
WithEdge |
Converts an STL
map into a GraphWith Edges |
1. Must provide the
same functionality as a STL map |
1. All of the SortedGraph properties |