// /* * Main authors: * Grégoire Dooms * * Copyright: * Grégoire Dooms (Université catholique de Louvain), 2005 * * Last modified: * $Date: 2005-11-29 10:57:21 +0100 (Tue, 29 Nov 2005) $ * $Revision: 271 $ * * This file is part of CP(Graph) * * See the file "contribs/graph/LICENSE" for information on usage and * redistribution of this file, and for a * DISCLAIMER OF ALL WARRANTIES. * */ //using namespace std; #include //for pair #include #include #include /** * Returns a word from decriptor file in. Used in loadAmalfi(...). */ unsigned readWord(istream& in); /** * * Local function to load an amalfi untyped graph format file. * - f is the file name * - returns a pair of vectors : * - L1 is the vector of n node ids ranging from [0,...,n-1] * - L2 is the vector of edges reprented by pair of node ids * */ pair,vector > > loadAmalfi(string f); vector loadList(string filename); pair,vector > > loadGraph(const string filename); pair,vector > > loadGraphWeights(const string filename); pair,vector > > loadDotGraph(const string filename); boost::tuple,vector >,vector,vector > > loadDotGraphOptForb(const string filename);