get_network() public method

public get_network ( String ID ) : Graph
ID String
return Smrf.NodeXL.Core.Graph
 public void TestGetNetWorkFromDatabase()
 {
     DB_Manager db = new DB_Manager("networkvis");
     Graph g = db.get_network("ABC");
     Assert.AreEqual(true, g != null);
     db.close();
 }
        public void TestGetNetWorkFromImporter()
        {
            DB_Manager db = new DB_Manager("networkvis");
            String[] post = db.list_post_schema();
            Assert.AreEqual(true, post.Length > 1);

            db.setting.vertexCol = post[0];
            db.setting.edgeCol = post[1];
            Graph g = db.get_network("ABC",0);
            Assert.AreEqual(true, g != null);
            db.close();
        }
Example #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (listView1.SelectedItems.Count > 0)
     {
         Console.WriteLine(listView1.SelectedItems[0].Text);
         String ID = listView1.SelectedItems[0].Text;
         DB_Manager dbm = new DB_Manager("networkvis");
         this.Close();
         GraphGenerated(this, new IgraphGenerateEvent(dbm.get_network(ID)));
         
         /*TODO: Make query to generate graph*/
     }
 }