Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     Stream output = new FileStream("./filename", FileMode.OpenOrCreate);
     Library lib = new Library();
     var g = new GraphMaker(output, lib);
     if (args.Length > 0)
     {
         if (args[0].Equals("Movies"))
             g.MovieGraph();
         else if (args[0].Equals("Actors"))
             g.ActorGraph();
     }
 }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Stream  output = new FileStream("./filename", FileMode.OpenOrCreate);
            Library lib    = new Library();
            var     g      = new GraphMaker(output, lib);

            if (args.Length > 0)
            {
                if (args[0].Equals("Movies"))
                {
                    g.MovieGraph();
                }
                else if (args[0].Equals("Actors"))
                {
                    g.ActorGraph();
                }
            }
        }