import networkx as nx
import pandas as pd


def load_seventh_grader_network():
    # Read the edge list
    df = pd.read_csv('datasets/moreno_seventh/out.moreno_seventh_seventh',
                     skiprows=2, header=None, sep=' ')
    df.columns = ['student1', 'student2', 'count']

    # Read the node metadata
    meta = pd.read_csv(
        'datasets/moreno_seventh/ent.moreno_seventh_seventh.student.gender',
        header=None)
    meta.index += 1
    meta.columns = ['gender']

    # Construct graph from edge list.
    G = nx.DiGraph()
    for row in df.iterrows():
        G.add_edge(row[1]['student1'], row[1]['student2'],
                   count=row[1]['count'])
    # Add node metadata
    for n in G.nodes():
        G.node[n]['gender'] = meta.ix[n]['gender']
    return G


def load_twitter_network():
    # Read the edge list

    df = pd.read_csv('datasets/ego-facebook/out.ego-facebook',
                     sep=' ', skiprows=2, header=None)
    df = df[[0, 1]]
    df.columns = ['user1', 'user2']

    G = nx.DiGraph()
    for row in df.iterrows():
        G.add_edge(row[1]['user1'], row[1]['user2'])

    return G

@@ -798,15 +798,16 @@
 oad_
-twitter
+facebook
 _net

corrected function name