Permalink
Browse files

Condensed edge creation function into single option always requiring …

…edge weight
  • Loading branch information...
1 parent 02ba87e commit 8905d2532eb23d9a6e94c24486c69f4ad06f03dc Kim Burgess committed Mar 29, 2012
Showing with 1 addition and 16 deletions.
  1. +1 −16 graph.axi
View
@@ -64,7 +64,7 @@ define_function integer graph_create_node(graph g)
* @param weight the initial weighting to assign to the edge
* @return an integer containing the edge ID
*/
-define_function integer graph_create_weighted_edge(graph g, integer source,
+define_function integer graph_create_edge(graph g, integer source,
integer destination, integer weight)
{
stack_var graph_edge newEdge
@@ -79,21 +79,6 @@ define_function integer graph_create_weighted_edge(graph g, integer source,
}
/**
- * Defines a directed edge in the passed graph connecting the supplied edges
- * with a default weighting.
- *
- * @param g the graph to create the edge in
- * @param source the node ID of the edge source
- * @param destination the node ID of the edge desitination
- * @return an integer containing the edge ID
- */
-define_function integer graph_create_edge(graph g, integer source,
- integer destination)
-{
- return graph_create_weighted_edge(g, source, destination, 1)
-}
-
-/**
* Finds the closest unsettled node in the passed graph.
*
* @param g the graph to search

0 comments on commit 8905d25

Please sign in to comment.