//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author Matthew Saltz, John Miller * @version 2.0 * @date Fri Jul 10 12:39:33 EDT 2015 * @see LICENSE (MIT style license file). * * @note Methods for Reading from and Wrting to Files */ package scalation package database package graph_pm import java.io.PrintWriter import scala.collection.mutable.Map import scala.collection.mutable.{Set => SET} import scala.io.Source.fromFile //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** The `GraphIO` class is used to write digraphs to a file. * @param g the digraph to write */ class GraphIO (g: Graph): import GraphIO.EXT private val debug = debugf ("GraphIO", true) // debug function //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** Write digraph g to a file in the following format: * Graph (, , *