n_nodes = 6; 
n_edges = 7;

e = zeros(n_nodes,1);
e(1) = 1;
e(n_nodes) = -1;

A = [%% fill out %%];

d = [%% fill out %%];
