from Network import *
import solver

execfile('/home/olivia/UCSD/projects/datasets/datasets.py')

adjnoun = Network(GRAPH_DATASETS['adjnoun'])

subset_an = [74, 58, 57, 47, 79, 28, 18, 72, 38, 103, 7, 14, 59, 17, 29, 37, 0, 1, 2]

vertex_boundary_an = adjnoun.vertex_boundary(subset_an)

boundary_vec_an = np.array([[  0.                    ],
       [  0.                    ],
       [  0.                    ],
       [  5.77911761888219643879],
       [  0.                    ],
       [  2.27646552961078763033],
       [ 10.58656057307906017684],
       [  0.                    ],
       [  0.                    ],
       [  4.51760433206633837955],
       [  0.                    ],
       [  4.74210345594879889575],
       [ 12.05071542239849691214],
       [  7.40980174259560264716],
       [  0.                    ],
       [  3.38244114533962836333],
       [  6.28156337187148938739],
       [  0.                    ],
       [  0.                    ],
       [  9.29361915631438861851],
       [ 14.28244646089664193767],
       [  3.07534638487888400959],
       [  9.442867524854070993  ],
       [  8.96387404598495862729],
       [  7.717148585133799088  ],
       [  6.33933498796531669228],
       [  9.06928484515992749948],
       [  1.98210246362968911527],
       [  0.                    ],
       [  0.                    ],
       [  9.00628145545993241683],
       [ 14.62846635578571508063],
       [  6.41776388200968295195],
       [  3.7126639974108321951 ],
       [ 14.86129476678311966964],
       [  3.72677888249811406496],
       [  3.76316639998795210431],
       [  0.                    ],
       [  0.                    ],
       [ 12.32338224310040963871],
       [  5.48359820655352869778],
       [ 13.46628478975392084749],
       [  5.62453301147585449371],
       [  7.06162348407071860379],
       [ 10.64482662703332493948],
       [  8.25276673288893647396],
       [  1.71748091113870415825],
       [  0.                    ],
       [  0.57003552032717508258],
       [ 10.37142827750843032675],
       [ 12.07109944628965081392],
       [  6.45863166065272142902],
       [  4.67644646434751809494],
       [  2.39465861288017123343],
       [  0.85510432050764806355],
       [  0.                    ],
       [  0.                    ],
       [  0.                    ],
       [  0.                    ],
       [  0.                    ],
       [ 11.2990669442575999426 ],
       [  0.                    ],
       [  0.                    ],
       [  0.                    ],
       [  0.                    ],
       [  4.04676990861180829739],
       [  4.02736930150679839358],
       [  6.85704967758717298665],
       [  7.35904852756023064586],
       [  0.                    ],
       [ 10.84152150847634921149],
       [  6.32016757745418455983],
       [  0.                    ],
       [  1.64207036384088622682],
       [  0.                    ],
       [ 11.16938245819778074974],
       [  0.                    ],
       [ 13.78353863819304692129],
       [  6.62336548510697031844],
       [  0.                    ],
       [  8.60472175334798450308],
       [ 14.10343843428462129452],
       [  2.20748130198903202981],
       [ 10.97816029111904789772],
       [  5.80919177039135004037],
       [  2.61116900362457737828],
       [  0.59789749539661374289],
       [  3.61355057222820708063],
       [  0.97300471671143917707],
       [ 10.42593721058155864512],
       [  0.                    ],
       [  9.81005694468648492546],
       [  5.18481915194281217651],
       [  1.26145095047336575078],
       [  0.                    ],
       [  0.                    ],
       [  0.                    ],
       [ 14.69417407518787221932],
       [ 13.57418715447879797864],
       [  0.                    ],
       [  0.                    ],
       [  0.                    ],
       [  0.91003203937469634432],
       [  0.                    ],
       [  0.18997383875769491279],
       [  0.4924240025183312941 ],
       [  9.81405565286381253998],
       [  0.                    ],
       [  0.                    ],
       [ 13.28167584145559487752],
       [  8.11880751452148352598],
       [ 12.11504668247319749241]])

b2_an = solver.compute_b2(adjnoun, boundary_vec_an, subset_an)

3a8d3378d218d3f791f8c35c3010dd7b291c3869
<mask token>

<mask token>
execfile('/home/olivia/UCSD/projects/datasets/datasets.py')
<mask token>

<mask token>
execfile('/home/olivia/UCSD/projects/datasets/datasets.py')
adjnoun = Network(GRAPH_DATASETS['adjnoun'])
subset_an = [74, 58, 57, 47, 79, 28, 18, 72, 38, 103, 7, 14, 59, 17, 29, 37,
    0, 1, 2]
vertex_boundary_an = adjnoun.vertex_boundary(subset_an)
boundary_vec_an = np.array([[0.0], [0.0], [0.0], [5.779117618882196], [0.0],
    [2.2764655296107876], [10.58656057307906], [0.0], [0.0], [
    4.517604332066338], [0.0], [4.742103455948799], [12.050715422398497], [
    7.409801742595603], [0.0], [3.3824411453396284], [6.281563371871489], [
    0.0], [0.0], [9.293619156314389], [14.282446460896642], [
    3.075346384878884], [9.442867524854071], [8.963874045984959], [
    7.717148585133799], [6.339334987965317], [9.069284845159927], [
    1.9821024636296891], [0.0], [0.0], [9.006281455459932], [
    14.628466355785715], [6.417763882009683], [3.712663997410832], [
    14.86129476678312], [3.726778882498114], [3.763166399987952], [0.0], [
    0.0], [12.32338224310041], [5.483598206553529], [13.46628478975392], [
    5.6245330114758545], [7.061623484070719], [10.644826627033325], [
    8.252766732888936], [1.7174809111387042], [0.0], [0.5700355203271751],
    [10.37142827750843], [12.07109944628965], [6.458631660652721], [
    4.676446464347518], [2.3946586128801712], [0.8551043205076481], [0.0],
    [0.0], [0.0], [0.0], [0.0], [11.2990669442576], [0.0], [0.0], [0.0], [
    0.0], [4.046769908611808], [4.027369301506798], [6.857049677587173], [
    7.359048527560231], [0.0], [10.84152150847635], [6.320167577454185], [
    0.0], [1.6420703638408862], [0.0], [11.16938245819778], [0.0], [
    13.783538638193047], [6.62336548510697], [0.0], [8.604721753347985], [
    14.103438434284621], [2.207481301989032], [10.978160291119048], [
    5.80919177039135], [2.6111690036245774], [0.5978974953966137], [
    3.613550572228207], [0.9730047167114392], [10.425937210581559], [0.0],
    [9.810056944686485], [5.184819151942812], [1.2614509504733658], [0.0],
    [0.0], [0.0], [14.694174075187872], [13.574187154478798], [0.0], [0.0],
    [0.0], [0.9100320393746963], [0.0], [0.1899738387576949], [
    0.4924240025183313], [9.814055652863813], [0.0], [0.0], [
    13.281675841455595], [8.118807514521484], [12.115046682473197]])
b2_an = solver.compute_b2(adjnoun, boundary_vec_an, subset_an)

from Network import *
import solver
execfile('/home/olivia/UCSD/projects/datasets/datasets.py')
adjnoun = Network(GRAPH_DATASETS['adjnoun'])
subset_an = [74, 58, 57, 47, 79, 28, 18, 72, 38, 103, 7, 14, 59, 17, 29, 37,
    0, 1, 2]
vertex_boundary_an = adjnoun.vertex_boundary(subset_an)
boundary_vec_an = np.array([[0.0], [0.0], [0.0], [5.779117618882196], [0.0],
    [2.2764655296107876], [10.58656057307906], [0.0], [0.0], [
    4.517604332066338], [0.0], [4.742103455948799], [12.050715422398497], [
    7.409801742595603], [0.0], [3.3824411453396284], [6.281563371871489], [
    0.0], [0.0], [9.293619156314389], [14.282446460896642], [
    3.075346384878884], [9.442867524854071], [8.963874045984959], [
    7.717148585133799], [6.339334987965317], [9.069284845159927], [
    1.9821024636296891], [0.0], [0.0], [9.006281455459932], [
    14.628466355785715], [6.417763882009683], [3.712663997410832], [
    14.86129476678312], [3.726778882498114], [3.763166399987952], [0.0], [
    0.0], [12.32338224310041], [5.483598206553529], [13.46628478975392], [
    5.6245330114758545], [7.061623484070719], [10.644826627033325], [
    8.252766732888936], [1.7174809111387042], [0.0], [0.5700355203271751],
    [10.37142827750843], [12.07109944628965], [6.458631660652721], [
    4.676446464347518], [2.3946586128801712], [0.8551043205076481], [0.0],
    [0.0], [0.0], [0.0], [0.0], [11.2990669442576], [0.0], [0.0], [0.0], [
    0.0], [4.046769908611808], [4.027369301506798], [6.857049677587173], [
    7.359048527560231], [0.0], [10.84152150847635], [6.320167577454185], [
    0.0], [1.6420703638408862], [0.0], [11.16938245819778], [0.0], [
    13.783538638193047], [6.62336548510697], [0.0], [8.604721753347985], [
    14.103438434284621], [2.207481301989032], [10.978160291119048], [
    5.80919177039135], [2.6111690036245774], [0.5978974953966137], [
    3.613550572228207], [0.9730047167114392], [10.425937210581559], [0.0],
    [9.810056944686485], [5.184819151942812], [1.2614509504733658], [0.0],
    [0.0], [0.0], [14.694174075187872], [13.574187154478798], [0.0], [0.0],
    [0.0], [0.9100320393746963], [0.0], [0.1899738387576949], [
    0.4924240025183313], [9.814055652863813], [0.0], [0.0], [
    13.281675841455595], [8.118807514521484], [12.115046682473197]])
b2_an = solver.compute_b2(adjnoun, boundary_vec_an, subset_an)

from Network import *
import solver

execfile('/home/olivia/UCSD/projects/datasets/datasets.py')

adjnoun = Network(GRAPH_DATASETS['adjnoun'])

subset_an = [74, 58, 57, 47, 79, 28, 18, 72, 38, 103, 7, 14, 59, 17, 29, 37, 0, 1, 2]

vertex_boundary_an = adjnoun.vertex_boundary(subset_an)

boundary_vec_an = np.array([[  0.                    ],
       [  0.                    ],
       [  0.                    ],
       [  5.77911761888219643879],
       [  0.                    ],
       [  2.27646552961078763033],
       [ 10.58656057307906017684],
       [  0.                    ],
       [  0.                    ],
       [  4.51760433206633837955],
       [  0.                    ],
       [  4.74210345594879889575],
       [ 12.05071542239849691214],
       [  7.40980174259560264716],
       [  0.                    ],
       [  3.38244114533962836333],
       [  6.28156337187148938739],
       [  0.                    ],
       [  0.                    ],
       [  9.29361915631438861851],
       [ 14.28244646089664193767],
       [  3.07534638487888400959],
       [  9.442867524854070993  ],
       [  8.96387404598495862729],
       [  7.717148585133799088  ],
       [  6.33933498796531669228],
       [  9.06928484515992749948],
       [  1.98210246362968911527],
       [  0.                    ],
       [  0.                    ],
       [  9.00628145545993241683],
       [ 14.62846635578571508063],
       [  6.41776388200968295195],
       [  3.7126639974108321951 ],
       [ 14.86129476678311966964],
       [  3.72677888249811406496],
       [  3.76316639998795210431],
       [  0.                    ],
       [  0.                    ],
       [ 12.32338224310040963871],
       [  5.48359820655352869778],
       [ 13.46628478975392084749],
       [  5.62453301147585449371],
       [  7.06162348407071860379],
       [ 10.64482662703332493948],
       [  8.25276673288893647396],
       [  1.71748091113870415825],
       [  0.                    ],
       [  0.57003552032717508258],
       [ 10.37142827750843032675],
       [ 12.07109944628965081392],
       [  6.45863166065272142902],
       [  4.67644646434751809494],
       [  2.39465861288017123343],
       [  0.85510432050764806355],
       [  0.                    ],
       [  0.                    ],
       [  0.                    ],
       [  0.                    ],
       [  0.                    ],
       [ 11.2990669442575999426 ],
       [  0.                    ],
       [  0.                    ],
       [  0.                    ],
       [  0.                    ],
       [  4.04676990861180829739],
       [  4.02736930150679839358],
       [  6.85704967758717298665],
       [  7.35904852756023064586],
       [  0.                    ],
       [ 10.84152150847634921149],
       [  6.32016757745418455983],
       [  0.                    ],
       [  1.64207036384088622682],
       [  0.                    ],
       [ 11.16938245819778074974],
       [  0.                    ],
       [ 13.78353863819304692129],
       [  6.62336548510697031844],
       [  0.                    ],
       [  8.60472175334798450308],
       [ 14.10343843428462129452],
       [  2.20748130198903202981],
       [ 10.97816029111904789772],
       [  5.80919177039135004037],
       [  2.61116900362457737828],
       [  0.59789749539661374289],
       [  3.61355057222820708063],
       [  0.97300471671143917707],
       [ 10.42593721058155864512],
       [  0.                    ],
       [  9.81005694468648492546],
       [  5.18481915194281217651],
       [  1.26145095047336575078],
       [  0.                    ],
       [  0.                    ],
       [  0.                    ],
       [ 14.69417407518787221932],
       [ 13.57418715447879797864],
       [  0.                    ],
       [  0.                    ],
       [  0.                    ],
       [  0.91003203937469634432],
       [  0.                    ],
       [  0.18997383875769491279],
       [  0.4924240025183312941 ],
       [  9.81405565286381253998],
       [  0.                    ],
       [  0.                    ],
       [ 13.28167584145559487752],
       [  8.11880751452148352598],
       [ 12.11504668247319749241]])

b2_an = solver.compute_b2(adjnoun, boundary_vec_an, subset_an)
