/* -*- mode: C++ -*- */ ////////////////////////////////////////////////////////////////////////////// // FILE : graphtools.tol // PURPOSE: Defines NameBlock GraphTools ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// NameBlock GraphTools = ////////////////////////////////////////////////////////////////////////////// [[ Text _.autodoc.description = "Functions and classes related with " "Graph Theory."; Text _.autodoc.keywords = "Graph Theory,vertex,edge,adjacent"; ////////////////////////////////////////////////////////////////////////////// Text _.autodoc.member.Append.Indexed = "Adds and index a new element to a " "set and returns 0 if it´s all right. If an element with given name exists " "already then returns its index, else returns 0"; Real Append.Indexed(Set set, Anything newElement, Text name) ////////////////////////////////////////////////////////////////////////////// { Real idx = FindIndexByName(set, name ); If(idx != 0, { WriteLn("[GraphTools::Append.Indexed] Cannot add an existant element "+ Name(set)+"["< ... (n-1) ... -> U Set get.adyacency.output(Real V, Real order) //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// Devuelve los vértices adyacentes U de entrada de orden dado para el vértice especificado. U -> ... (n-1) ... -> V Set get.adyacency.input(Real V, Real order) //////////////////////////////////////////////////////////////////////////// */ } ]];