You are on page 1of 23

(*1

*)
(*1a*)
m=Input["Vnesi redici m="]
n=Input["Vnesi redici n="]
A=Table[Input["A[[i,j]]="],{i,m},{j,n}];
B=Table[Input["B[[i,j]]="],{i,m},{j,n}];
Print["A+B = ",MatrixForm[A+B]];
2
2
A+B = ({
{2, 4},
{6, 8}
})
(*1b*)
Print["A-B = "MatrixForm[A-B]];
(*1v*)
Bt=Transpose[B];
Print["Transponirana mat. B: ",MatrixForm[Bt]];
Transponirana mat. B: ({
{1, 3},
{2, 4}
})
(*1g*)
Print["Zbirot na elementite po dijagonala na dvete matrici e: ",Tr[A]+Tr[B]]
Zbirot na elementite po dijagonala na dvete matrici e: 10
(*2*)
n=Input["Vnesi red na matricata (nxn) n="]
M=Table[Input["M[[i,j]]="],{i,n},{j,n}];
M//MatrixForm
suma=0;
For[i=1,i<=n,i++,
For[j=1,j<=n,j++,
If[Mod[M[[i,j]],2]==0,suma+=M[[i,j]]]
]
]
Print["Zbirot na site parni elementi od matricata M e: ",suma];
2
({
{1, 1},
{1, 1}
})
Zbirot na site parni elementi od matricata M e: 0
(*3*)
n=Input["Vnesi go redot na matricata M nxn n="]

M=ConstantArray[0,{n,n}];
M//MatrixForm
poz=Round[n/2]
brDzv=1;
For[i=2,i<= n,i++,
For[j=1,j<=n,j++,
If[j==poz,For[k=1,k<=brDzv,k++,M[[i,j]]="*";j++],]
];
poz--;
brDzv+=2;
]
M//MatrixForm
3
({
{0, 0, 0},
{0, 0, 0},
{0, 0, 0}
})
2
({
{0, 0, 0},
{0, *, 0},
{*, *, *}
})
(*4*)
(*Да се реши системот равенки со Гаусов метод:
4x+y-z = 3,
2x+7y+z = 19,
x-3y+12z = 31.
*)
(*Прво од системот ја пишуваме матрицата А*)
A={{4,1,-1},{2,7,1},{1,-3,12}};
A//MatrixForm
RHS={3,19,31};
RHS//MatrixForm
B=Transpose[Append[Transpose[A],RHS]];(*Се додава векторот со решенија RHS на
матрицата А*)
GausovMetod[B_]:=Module[{n,k,i,j,A1={},RHS1={}},
n=Length[B]-1; (*n е должината на матрицата А*)

Print["B = ",MatrixForm[B]];

Print["Pocetok",MatrixForm[B]]; Print[" "];
({
{4, 1, -1},
{2, 7, 1},
{1, -3, 12}
})
({
{3},
{19},
{31}
})
(*Се генерира горнотриаголна матрица*)
For[k=1,k<=n-1,k++,
For[i=k+1,i<=n,i++,
multiplier=N[B[[i,k]]/B[[k,k]]]; (*Функцијата N враќа нумеричка вредност на изразот*)
For[j=k,j<=n+1,j++,
B[[i,j]]=B[[i,j]]-multiplier*B[[k,j]]
]
];
(*Печатење на секој чекор*)
Print["Cekor=",k,MatrixForm[B]]; Print[" "]
];
Print["Matricata B = ",MatrixForm[B]];
Print["Resenijata so RowReduce: ",MatrixForm[RowReduce[B]]];
Cekor= 1 ({
{4, 1, -1, 3},
{0., 6.5, 1.5, 17.5},
{0., -3.25, 12.25, 30.25}
})
Cekor= 2 ({
{4, 1, -1, 3},
{0., 6.5, 1.5, 17.5},
{0., 0., 13., 39.}
})
Matricata B = ({
{4, 1, -1, 3},
{0., 6.5, 1.5, 17.5},
{0., 0., 13., 39.}
})
Resenijata so RowReduce: ({
{1, 0., 0., 1.},
{0, 1, 0., 2.},
{0, 0, 1, 3.}
})

(*---------------------*)
A1=Take[B,{1,n},{1,n}];
MatrixForm[A1];
RHS1=Take[B,{1,n},{n+1,n+1}];
MatrixForm[RHS1];
Print["Resenija na sistemot se: ",LinearSolve[A1,RHS1]];
Resenija na sistemot se: {{1.},{2.},{3.}}
GausovMetod[A,RHS]
Print["Proverka so Solve: ",Solve[{ 4*x+y-z ,2*x+7*y+z,x-3*y+12*z }=={3,19,31}]];
Print["Proverka so LinearSolve: ",LinearSolve[A,RHS]];
GausovMetod[{{4,1,-1},{2,7,1},{1,-3,12}},{3,19,31}]
Proverka so Solve: {{x->1,y->2,z->3}}
Proverka so LinearSolve: {1,2,3}
(*5*)
A={{4,3,4,2},{1,2,1,3},{3,2,2,1},{1,1,2,1}}
B={{5,6,4,3},{3,6,4,2},{1,6,1,1},{3,6,4,2}}
Print["A = ",MatrixForm[A]];
Print["B = ",MatrixForm[B]];
Apom=Take[A,-3];
Print["Apom = ",MatrixForm[Apom]];
Bpom=Take[B,3];
Print["Bpom = ",MatrixForm[Bpom]];
If[Dimensions[Apom]==Dimensions[Bpom],Bt=Transpose[Bpom];
Print["B transponirana = ",MatrixForm[Bt]];
proiz=Apom.Bt;
Print["Proizvodot na prvata i transponirana od vtorata matrica e: ",MatrixForm[proiz]]
]
(*Zamena na el. od 1vata matrica*)
pom={};
A2=Apom;
pom=A2[[2]];
A2[[2]]=A2[[3]];
A2[[3]]=pom;
Print["Matricata, ",MatrixForm[Apom]," so zameneti 2-ra i 3-ta redica: ",MatrixForm[A2]];
B2=Bpom;
For[i=1,i<=3,i++,
For[j=1,j<=4,j++,
B2[[i,j]]*=2;
]

]
Print["Matricata, ",MatrixForm[Bpom]," so pomnozen sekoj element so 2: ",MatrixForm[B2]];
Join[A2,B2]//MatrixForm
{{4,3,4,2},{1,2,1,3},{3,2,2,1},{1,1,2,1}}
{{5,6,4,3},{3,6,4,2},{1,6,1,1},{3,6,4,2}}
A = ({
{4, 3, 4, 2},
{1, 2, 1, 3},
{3, 2, 2, 1},
{1, 1, 2, 1}
})
B = ({
{5, 6, 4, 3},
{3, 6, 4, 2},
{1, 6, 1, 1},
{3, 6, 4, 2}
})
Apom = ({
{1, 2, 1, 3},
{3, 2, 2, 1},
{1, 1, 2, 1}
})
Bpom = ({
{5, 6, 4, 3},
{3, 6, 4, 2},
{1, 6, 1, 1}
})
B transponirana = ({
{5, 3, 1},
{6, 6, 6},
{4, 4, 1},
{3, 2, 1}
})
Proizvodot na prvata i transponirana od vtorata matrica e: ({
{30, 25, 17},
{38, 31, 18},
{22, 19, 10}
})
Matricata, ({
{1, 2, 1, 3},
{3, 2, 2, 1},
{1, 1, 2, 1}
}) so zameneti 2-ra i 3-ta redica: ({
{1, 2, 1, 3},
{1, 1, 2, 1},

{3, 2, 2, 1}
})
Matricata, ({
{5, 6, 4, 3},
{3, 6, 4, 2},
{1, 6, 1, 1}
}) so pomnozen sekoj element so 2: ({
{10, 12, 8, 6},
{6, 12, 8, 4},
{2, 12, 2, 2}
})
({
{1, 2, 1, 3},
{1, 1, 2, 1},
{3, 2, 2, 1},
{10, 12, 8, 6},
{6, 12, 8, 4},
{2, 12, 2, 2}
})
(*6*)
A={};
n=Input["Vnesete red nxn, n="]
For[i=1,i<=n,i++,
pom={};
For[j=1,j<=n,j++,
AppendTo[pom,Input["A[i,j]="]]
];
AppendTo[A,pom];
]
Print["A = ",MatrixForm[A]];
If[MatrixQ[A],B=MatrixPower[A,5]; Print["Minori: ",Minors[B]],];
MatrixForm[UpperTriangularize[A]]
MatrixForm[LowerTriangularize[A]]
3
A = ({
{1, 2, 3},
{3, 2, 2},
{1, 2, 4}
})
Minori: {{-2264,-5723,-2678},{584,2825,2386},{3312,9886,5820}}
({
{1, 2, 3},
{0, 2, 2},

{0, 0, 4}
})
({
{1, 0, 0},
{3, 2, 0},
{1, 2, 4}
})
(*grafovi 1*)
<<DiscreteMath`Combinatorica`
n=7
a=MakeGraph[Range[n],(Mod[#1,#2]==1)&]
ShowGraph[a]
n=10
b=MakeGraph[Range[n],(Mod[#1,#2]<3)&]
ShowGraph[b]
n=12
c=MakeGraph[Range[n],(Floor[#1/#2]>5||Floor[#1/#2]<3)&]
ShowGraph[c]
n=20
d=MakeGraph[Range[n],(#1^2+#1>#2^3-#2)&]
ShowGraph[d]
n=15
e=MakeGraph[Range[2,n+1],(#1-IntegerPart[Sqrt[#1]]>=Mod[#2,(#2-1)])&]
ShowGraph[e]
General::newpkg: DiscreteMath`Combinatorica` is now available as the Combinatorica Package.
See the Compatibility Guide for updating information. >>
M::shdw: Symbol M appears in multiple contexts {DiscreteMath`Combinatorica`,Global`};
definitions in context DiscreteMath`Combinatorica` may shadow or be shadowed by other
definitions. >>
MakeGraph::shdw: Symbol MakeGraph appears in multiple contexts
{DiscreteMath`Combinatorica`,Global`}; definitions in context DiscreteMath`Combinatorica`
may shadow or be shadowed by other definitions. >>
ShowGraph::shdw: Symbol ShowGraph appears in multiple contexts
{DiscreteMath`Combinatorica`,Global`}; definitions in context DiscreteMath`Combinatorica`
may shadow or be shadowed by other definitions. >>
Graph::nonopt: Options expected (instead of opts___?OptionQ) beyond position 2 in
Graph[e_List,v_List,opts___?OptionQ]. An option must be a rule or a list of rules. >>
Set::write: Tag AlternatingGroup in SyntaxInformation[AlternatingGroup] is Protected. >>
SetDelayed::write: Tag AlternatingGroup in AlternatingGroup[l_List] is Protected. >>
SetDelayed::write: Tag AlternatingGroup in AlternatingGroup[n_Integer?Positive] is Protected.
>>
Set::write: Tag ButterflyGraph in Options[ButterflyGraph] is Protected. >>
Set::write: Tag ButterflyGraph in SyntaxInformation[ButterflyGraph] is Protected. >>
General::stop: Further output of Set::write will be suppressed during this calculation. >>
SetDelayed::write: Tag ButterflyGraph in ButterflyGraph[n_Integer?Positive,opts___?OptionQ]
is Protected. >>

General::stop: Further output of SetDelayed::write will be suppressed during this calculation. >>
Graph::nonopt: Options expected (instead of dopts___?OptionQ) beyond position 2 in
Graph[_List,v_List,dopts___?OptionQ]. An option must be a rule or a list of rules. >>
Graph::nonopt: Options expected (instead of dopts___) beyond position 2 in
Graph[_,v_,dopts___]. An option must be a rule or a list of rules. >>
General::stop: Further output of Graph::nonopt will be suppressed during this calculation. >>
SetDelayed::wrsym: Symbol PetersenGraph is Protected. >>
7
Graph::optx: Unknown option EdgeDirection in
Graph[{{{1,2}},{{1,3}},{{1,4}},{{1,5}},{{1,6}},{{1,7}},{{3,2}},{{4,3}},{{5,2}},{{5,4}},{{6
,5}},{{7,2}},{{7,3}},{{7,6}}},{{{0.62349,0.781831}},{{0.222521,0.974928}},{<<1>>},{{<<1>>}},{{-<<19>>,-<<19>>}},{{0.62349,0.781831}},{{1.,0}}},EdgeDirection->True]. >>
Graph[{{{1,2}},{{1,3}},{{1,4}},{{1,5}},{{1,6}},{{1,7}},{{3,2}},{{4,3}},{{5,2}},{{5,4}},{{6
,5}},{{7,2}},{{7,3}},{{7,6}}},{{{0.62349,0.781831}},{{-0.222521,0.974928}},{{0.900969,0.433884}},{{-0.900969,-0.433884}},{{-0.222521,-0.974928}},{{0.62349,0.781831}},{{1.,0}}},EdgeDirection->True]

10
Graph::optx: Unknown option EdgeDirection in Graph[<<1>>]. >>
Graph[{{{1,1}},{{1,2}},{{1,3}},{{1,4}},{{1,5}},{{1,6}},{{1,7}},{{1,8}},{{1,9}},{{1,10}},{{
2,1}},{{2,2}},{{2,3}},{{2,4}},{{2,5}},{{2,6}},{{2,7}},{{2,8}},{{2,9}},{{2,10}},{{3,1}},{{3,
2}},{{3,3}},{{4,1}},{{4,2}},{{4,3}},{{4,4}},{{5,1}},{{5,2}},{{5,3}},{{5,4}},{{5,5}},{{6,1}
},{{6,2}},{{6,3}},{{6,4}},{{6,5}},{{6,6}},{{7,1}},{{7,2}},{{7,3}},{{7,5}},{{7,6}},{{7,7}},{
{8,1}},{{8,2}},{{8,3}},{{8,4}},{{8,6}},{{8,7}},{{8,8}},{{9,1}},{{9,2}},{{9,3}},{{9,4}},{{9,
7}},{{9,8}},{{9,9}},{{10,1}},{{10,2}},{{10,3}},{{10,4}},{{10,5}},{{10,8}},{{10,9}},{{10,1
0}}},{{{0.809017,0.587785}},{{0.309017,0.951057}},{{-0.309017,0.951057}},{{-

0.809017,0.587785}},{{-1.,0}},{{-0.809017,-0.587785}},{{-0.309017,0.951057}},{{0.309017,-0.951057}},{{0.809017,-0.587785}},{{1.,0}}},EdgeDirection->True]

12
Graph::optx: Unknown option EdgeDirection in <<1>>. >>
Graph[{{{1,1}},{{1,2}},{{1,3}},{{1,4}},{{1,5}},{{1,6}},{{1,7}},{{1,8}},{{1,9}},{{1,10}},{{
1,11}},{{1,12}},{{2,1}},{{2,2}},{{2,3}},{{2,4}},{{2,5}},{{2,6}},{{2,7}},{{2,8}},{{2,9}},{{
2,10}},{{2,11}},{{2,12}},{{3,2}},{{3,3}},{{3,4}},{{3,5}},{{3,6}},{{3,7}},{{3,8}},{{3,9}},{
{3,10}},{{3,11}},{{3,12}},{{4,2}},{{4,3}},{{4,4}},{{4,5}},{{4,6}},{{4,7}},{{4,8}},{{4,9}},
{{4,10}},{{4,11}},{{4,12}},{{5,2}},{{5,3}},{{5,4}},{{5,5}},{{5,6}},{{5,7}},{{5,8}},{{5,9}}
,{{5,10}},{{5,11}},{{5,12}},{{6,1}},{{6,3}},{{6,4}},{{6,5}},{{6,6}},{{6,7}},{{6,8}},{{6,9}
},{{6,10}},{{6,11}},{{6,12}},{{7,1}},{{7,3}},{{7,4}},{{7,5}},{{7,6}},{{7,7}},{{7,8}},{{7,9
}},{{7,10}},{{7,11}},{{7,12}},{{8,1}},{{8,3}},{{8,4}},{{8,5}},{{8,6}},{{8,7}},{{8,8}},{{8,
9}},{{8,10}},{{8,11}},{{8,12}},{{9,1}},{{9,4}},{{9,5}},{{9,6}},{{9,7}},{{9,8}},{{9,9}},{{9
,10}},{{9,11}},{{9,12}},{{10,1}},{{10,4}},{{10,5}},{{10,6}},{{10,7}},{{10,8}},{{10,9}},{{
10,10}},{{10,11}},{{10,12}},{{11,1}},{{11,4}},{{11,5}},{{11,6}},{{11,7}},{{11,8}},{{11,9
}},{{11,10}},{{11,11}},{{11,12}},{{12,1}},{{12,2}},{{12,5}},{{12,6}},{{12,7}},{{12,8}},{{
12,9}},{{12,10}},{{12,11}},{{12,12}}},{{{0.866025,0.5}},{{0.5,0.866025}},{{0,1.}},{{0.5,0.866025}},{{-0.866025,0.5}},{{-1.,0}},{{-0.866025,-0.5}},{{-0.5,-0.866025}},{{0,1.}},{{0.5,-0.866025}},{{0.866025,-0.5}},{{1.,0}}},EdgeDirection->True]

20
Graph::optx: Unknown option EdgeDirection in <<1>>. >>
Graph[{{{1,1}},{{2,1}},{{3,1}},{{3,2}},{{4,1}},{{4,2}},{{5,1}},{{5,2}},{{5,3}},{{6,1}},{{6
,2}},{{6,3}},{{7,1}},{{7,2}},{{7,3}},{{8,1}},{{8,2}},{{8,3}},{{8,4}},{{9,1}},{{9,2}},{{9,3}
},{{9,4}},{{10,1}},{{10,2}},{{10,3}},{{10,4}},{{11,1}},{{11,2}},{{11,3}},{{11,4}},{{11,5}
},{{12,1}},{{12,2}},{{12,3}},{{12,4}},{{12,5}},{{13,1}},{{13,2}},{{13,3}},{{13,4}},{{13,5
}},{{14,1}},{{14,2}},{{14,3}},{{14,4}},{{14,5}},{{15,1}},{{15,2}},{{15,3}},{{15,4}},{{15,
5}},{{15,6}},{{16,1}},{{16,2}},{{16,3}},{{16,4}},{{16,5}},{{16,6}},{{17,1}},{{17,2}},{{17
,3}},{{17,4}},{{17,5}},{{17,6}},{{18,1}},{{18,2}},{{18,3}},{{18,4}},{{18,5}},{{18,6}},{{1
8,7}},{{19,1}},{{19,2}},{{19,3}},{{19,4}},{{19,5}},{{19,6}},{{19,7}},{{20,1}},{{20,2}},{{
20,3}},{{20,4}},{{20,5}},{{20,6}},{{20,7}}},{{{0.951057,0.309017}},{{0.809017,0.587785}
},{{0.587785,0.809017}},{{0.309017,0.951057}},{{0,1.}},{{-0.309017,0.951057}},{{0.587785,0.809017}},{{-0.809017,0.587785}},{{-0.951057,0.309017}},{{-1.,0}},{{0.951057,-0.309017}},{{-0.809017,-0.587785}},{{-0.587785,-0.809017}},{{-0.309017,0.951057}},{{0,-1.}},{{0.309017,-0.951057}},{{0.587785,-0.809017}},{{0.809017,0.587785}},{{0.951057,-0.309017}},{{1.,0}}},EdgeDirection->True]

15
Graph::optx: Unknown option EdgeDirection in <<1>>. >>
Graph[{{{1,1}},{{1,2}},{{1,3}},{{1,4}},{{1,5}},{{1,6}},{{1,7}},{{1,8}},{{1,9}},{{1,10}},{{
1,11}},{{1,12}},{{1,13}},{{1,14}},{{1,15}},{{2,1}},{{2,2}},{{2,3}},{{2,4}},{{2,5}},{{2,6}}
,{{2,7}},{{2,8}},{{2,9}},{{2,10}},{{2,11}},{{2,12}},{{2,13}},{{2,14}},{{2,15}},{{3,1}},{{3
,2}},{{3,3}},{{3,4}},{{3,5}},{{3,6}},{{3,7}},{{3,8}},{{3,9}},{{3,10}},{{3,11}},{{3,12}},{{
3,13}},{{3,14}},{{3,15}},{{4,1}},{{4,2}},{{4,3}},{{4,4}},{{4,5}},{{4,6}},{{4,7}},{{4,8}},{
{4,9}},{{4,10}},{{4,11}},{{4,12}},{{4,13}},{{4,14}},{{4,15}},{{5,1}},{{5,2}},{{5,3}},{{5,4
}},{{5,5}},{{5,6}},{{5,7}},{{5,8}},{{5,9}},{{5,10}},{{5,11}},{{5,12}},{{5,13}},{{5,14}},{{
5,15}},{{6,1}},{{6,2}},{{6,3}},{{6,4}},{{6,5}},{{6,6}},{{6,7}},{{6,8}},{{6,9}},{{6,10}},{{
6,11}},{{6,12}},{{6,13}},{{6,14}},{{6,15}},{{7,1}},{{7,2}},{{7,3}},{{7,4}},{{7,5}},{{7,6}}
,{{7,7}},{{7,8}},{{7,9}},{{7,10}},{{7,11}},{{7,12}},{{7,13}},{{7,14}},{{7,15}},{{8,1}},{{8
,2}},{{8,3}},{{8,4}},{{8,5}},{{8,6}},{{8,7}},{{8,8}},{{8,9}},{{8,10}},{{8,11}},{{8,12}},{{
8,13}},{{8,14}},{{8,15}},{{9,1}},{{9,2}},{{9,3}},{{9,4}},{{9,5}},{{9,6}},{{9,7}},{{9,8}},{
{9,9}},{{9,10}},{{9,11}},{{9,12}},{{9,13}},{{9,14}},{{9,15}},{{10,1}},{{10,2}},{{10,3}},{
{10,4}},{{10,5}},{{10,6}},{{10,7}},{{10,8}},{{10,9}},{{10,10}},{{10,11}},{{10,12}},{{10,
13}},{{10,14}},{{10,15}},{{11,1}},{{11,2}},{{11,3}},{{11,4}},{{11,5}},{{11,6}},{{11,7}},{
{11,8}},{{11,9}},{{11,10}},{{11,11}},{{11,12}},{{11,13}},{{11,14}},{{11,15}},{{12,1}},{{
12,2}},{{12,3}},{{12,4}},{{12,5}},{{12,6}},{{12,7}},{{12,8}},{{12,9}},{{12,10}},{{12,11}}
,{{12,12}},{{12,13}},{{12,14}},{{12,15}},{{13,1}},{{13,2}},{{13,3}},{{13,4}},{{13,5}},{{1
3,6}},{{13,7}},{{13,8}},{{13,9}},{{13,10}},{{13,11}},{{13,12}},{{13,13}},{{13,14}},{{13,
15}},{{14,1}},{{14,2}},{{14,3}},{{14,4}},{{14,5}},{{14,6}},{{14,7}},{{14,8}},{{14,9}},{{1
4,10}},{{14,11}},{{14,12}},{{14,13}},{{14,14}},{{14,15}},{{15,1}},{{15,2}},{{15,3}},{{15
,4}},{{15,5}},{{15,6}},{{15,7}},{{15,8}},{{15,9}},{{15,10}},{{15,11}},{{15,12}},{{15,13}}
,{{15,14}},{{15,15}}},{{{0.913545,0.406737}},{{0.669131,0.743145}},{{0.309017,0.951057
}},{{-0.104528,0.994522}},{{-0.5,0.866025}},{{-0.809017,0.587785}},{{0.978148,0.207912}},{{-0.978148,-0.207912}},{{-0.809017,-0.587785}},{{-0.5,-

0.866025}},{{-0.104528,-0.994522}},{{0.309017,-0.951057}},{{0.669131,0.743145}},{{0.913545,-0.406737}},{{1.,0}}},EdgeDirection->True]

(*2*)
<<DiscreteMath`Combinatorica`
n=Input["Vnesi N"]
m=Input["Vnesi M"]
i=Input["Vnesi I"]
j=Input["Vnesi J"]
completegraph=CompleteGraph[n]
ShowGraph[SetGraphOptions[AddVertex[completegraph,{i,j}],{{1,2,VertexColor>Blue,VertexStyle->Disk[Large]},{n,VertexColor->Red}},EdgeColor->Green]]
stargraph=Star[m]
ShowGraph[DeleteEdge[stargraph,{i,j}]]
General::newpkg: DiscreteMath`Combinatorica` is now available as the Combinatorica Package.
See the Compatibility Guide for updating information. >>
Graph::nonopt: Options expected (instead of opts___?OptionQ) beyond position 2 in
Graph[e_List,v_List,opts___?OptionQ]. An option must be a rule or a list of rules. >>
Graph::nonopt: Options expected (instead of dopts___?OptionQ) beyond position 2 in
Graph[_List,v_List,dopts___?OptionQ]. An option must be a rule or a list of rules. >>
Graph::nonopt: Options expected (instead of dopts___) beyond position 2 in
Graph[_,v_,dopts___]. An option must be a rule or a list of rules. >>
General::stop: Further output of Graph::nonopt will be suppressed during this calculation. >>
SetDelayed::write: Tag Graph in MakeBoxes[Graph[e_,v_,o___],FormatType_] is Protected. >>
SetDelayed::write: Tag Graph in Graph[e_,v_,o___] is Protected. >>
SetDelayed::write: Tag Graph in Options[Graph] is Protected. >>
General::stop: Further output of SetDelayed::write will be suppressed during this calculation. >>
Set::write: Tag Graph in SyntaxInformation[Graph] is Protected. >>

4
4
6
7
OptionValue::optnf: Option name DirectedEdges not found in defaults for CompleteGraph. >>
Graph[{{{1,2}},{{1,3}},{{1,4}},{{2,3}},{{2,4}},{{3,4}}},{{{0,1.}},{{-1.,0}},{{0,1.}},{{1.,0}}}]
Graph::optx: Unknown option EdgeColor in
Graph[{{{1,2}},{{1,3}},{{1,4}},{{2,3}},{{2,4}},{{3,4}}},{{{0,1.},VertexColor>RGBColor[0,0,1],VertexStyle->Disk[Large]},{{-1.,0},VertexColor>RGBColor[0,0,1],VertexStyle->Disk[Large]},{{0,-1.}},{{1.,0},VertexColor>RGBColor[1,0,0]},{{6,7}}},EdgeColor->RGBColor[0,1,0]]. >>

Graph[{{{1,4}},{{2,4}},{{3,4}}},{{{-0.5,0.866025}},{{-0.5,-0.866025}},{{1.,0}},{{0,0}}}]

(*3*)
<<DiscreteMath`Combinatorica`
n=Input["Vnesi N"]
m=Input["Vnesi M"]
t=Input["Vnesi T"]
loopgraph1=MakeGraph[Range[n],(#1==#2)&]
loopgraph2=MakeGraph[Range[m],(#1==#2)&]
For[i=1,i<n,i++,loopgraph1=AddEdge[loopgraph1,{i,i+1}];
loopgraph2=DeleteVertex[loopgraph2,i];]
For[i=0,i<m,i++,loopgraph1=AddVertex[loopgraph1];
loopgraph2=DeleteEdge[loopgraph2,{i,i}];]
ShowGraph[loopgraph1]
ShowGraph[loopgraph2]
uniongraph=GraphUnion[loopgraph1,loopgraph2]
ShowGraph[uniongraph]
ShowGraph[InduceSubgraph[uniongraph,RandomSubset[Range[t]]]]
General::newpkg: DiscreteMath`Combinatorica` is now available as the Combinatorica Package.
See the Compatibility Guide for updating information. >>
Graph::nonopt: Options expected (instead of opts___?OptionQ) beyond position 2 in
Graph[e_List,v_List,opts___?OptionQ]. An option must be a rule or a list of rules. >>
Graph::nonopt: Options expected (instead of dopts___?OptionQ) beyond position 2 in
Graph[_List,v_List,dopts___?OptionQ]. An option must be a rule or a list of rules. >>
Graph::nonopt: Options expected (instead of dopts___) beyond position 2 in
Graph[_,v_,dopts___]. An option must be a rule or a list of rules. >>
General::stop: Further output of Graph::nonopt will be suppressed during this calculation. >>
SetDelayed::write: Tag Graph in MakeBoxes[Graph[e_,v_,o___],FormatType_] is Protected. >>
SetDelayed::write: Tag Graph in Graph[e_,v_,o___] is Protected. >>

SetDelayed::write: Tag Graph in Options[Graph] is Protected. >>
General::stop: Further output of SetDelayed::write will be suppressed during this calculation. >>
Set::write: Tag Graph in SyntaxInformation[Graph] is Protected. >>
2
3
4
Graph::optx: Unknown option EdgeDirection in Graph[{{{1,1}},{{2,2}}},{{{1.,0}},{{1.,0}}},EdgeDirection->True]. >>
Graph[{{{1,1}},{{2,2}}},{{{-1.,0}},{{1.,0}}},EdgeDirection->True]
Graph::optx: Unknown option EdgeDirection in Graph[{{{1,1}},{{2,2}},{{3,3}}},{{{0.5,0.866025}},{{-0.5,-0.866025}},{{1.,0}}},EdgeDirection->True]. >>
Graph[{{{1,1}},{{2,2}},{{3,3}}},{{{-0.5,0.866025}},{{-0.5,0.866025}},{{1.,0}}},EdgeDirection->True]
Graph::optx: Unknown option EdgeDirection in Graph[{{{1,1}},{{2,2}},{{1,2}}},{{{1.,0}},{{1.,0}}},EdgeDirection->True]. >>
Graph::optx: Unknown option EdgeDirection in Graph[{{{1,1}},{{2,2}}},{{{-0.5,0.866025}},{{1.,0}}},EdgeDirection->True]. >>
GraphUnion::graph: A graph object is expected at position 1 in
GraphUnion[Graph[{{{1,1}},{{2,2}},{{1,2}}},{{{-1.,0}},{{1.,0}}},EdgeDirection>True],Graph[{},{{{1.,0}}}]]. >>
Graph::optx: Unknown option EdgeDirection in Graph[{},{{{1.,0}}},EdgeDirection->True]. >>
GraphUnion::graph: A graph object is expected at position 1 in
GraphUnion[Graph[{{{1,1}},{{2,2}},{{1,2}}},{{{-1.,0}},{{1.,0}}},EdgeDirection>True],Graph[{},{{{1.,0}}},EdgeDirection->True]]. >>
Graph::optx: Unknown option EdgeDirection in
Graph[{{{1,1}},{{2,2}},{{1,2}}},{{{0.,0.5}},{{1.,0.5}}},EdgeDirection->True]. >>
Graph::optx: Unknown option EdgeDirection in Graph[{},{{{1.,0.}}},EdgeDirection->True]. >>
General::stop: Further output of Graph::optx will be suppressed during this calculation. >>
GraphUnion::graph: A graph object is expected at position 1 in
GraphUnion[Graph[{{{1,1}},{{2,2}},{{1,2}}},{{{0.,0.5}},{{1.,0.5}},{{2.,0.}}},EdgeDirection
->True],Graph[{},{{{1.,0}}}]]. >>
General::stop: Further output of GraphUnion::graph will be suppressed during this calculation.
>>

GraphUnion::graph: A graph object is expected at position 1 in
GraphUnion[Graph[{{{1,1}},{{2,2}},{{1,2}}},{{{0.,0.125}},{{0.25,0.125}},{{0.5,0.}},{{1.,0.
}},{{2.,0.}}},EdgeDirection->True],Graph[{},{{{-0.5,-0.866025}},{{1.,0}}},EdgeDirection>True]]. >>
Graph::optx: Unknown option EdgeDirection in
Graph[{{{1,1}},{{2,2}},{{1,2}}},{{{0.,0.0625}},{{0.125,0.0625}},{{0.25,0.}},{{0.5,0.}},{{1.
,0.}}},EdgeDirection->True]. >>

Graph::optx: Unknown option EdgeDirection in
Graph[{},{{{0.196152,0.}},{{1.,0.464102}}},EdgeDirection->True]. >>
Graph::optx: Unknown option EdgeDirection in
Graph[{{{1,1}},{{2,2}},{{1,2}}},{{{0.,0.0625}},{{0.125,0.0625}},{{0.25,0.}},{{0.5,0.}},{{1.
,0.}},{{2.,0.}},{{2.80385,0.464102}}},EdgeDirection->True]. >>
General::stop: Further output of Graph::optx will be suppressed during this calculation. >>
Graph[{{{1,1}},{{2,2}},{{1,2}}},{{{0.,0.0625}},{{0.125,0.0625}},{{0.25,0.}},{{0.5,0.}},{{1.
,0.}},{{2.,0.}},{{2.80385,0.464102}}},EdgeDirection->True]

Graph::optx: Unknown option EdgeDirection in
Graph[{{{1,1}},{{2,2}},{{1,2}}},{{{0.,0.0625}},{{0.125,0.0625}},{{0.25,0.}}},EdgeDirectio
n->True]. >>

(*4*)
While[1==1,opcija=Input["Izberi Opcija"];
If[opcija==0,Break[]];
If[opcija==1,n=Input["vnesi n"];
graph=CompleteGraph[n];];
If[opcija==2,n=Input["vnesi n"];
graph=Star[n];];
If[opcija==3,graph=AddVertex[graph]];
If[opcija==4,index=Input["Vnesi indeks"];
graph=DeleteVertex[graph,index]];
If[opcija==5,19 teme1=Input["Vnesi prvo teme"];
teme2=Input["Vnesi vtoro teme"];
graph=AddEdge[opcija,{teme1,teme2}]];
If[opcija==6,teme1=Input["Vnesi prvo teme"];
teme2=Input["Vnesi vtoro teme"];
graph=DeleteEdge[graph,{teme1,teme2}]]]
ShowGraph[graph]
OptionValue::optnf: Option name DirectedEdges not found in defaults for CompleteGraph. >>
OptionValue::optnf: Option name DirectedEdges not found in defaults for CompleteGraph. >>
GraphUnion::graph: A graph object is expected at position 1 in
GraphUnion[Graph[{{{1,2}},{{1,3}},{{2,3}}},{{{-0.5,0.866025}},{{-0.5,0.866025}},{{1.,0}}}],Graph[{},{{{1.,0}}}]]. >>
OptionValue::optnf: Option name DirectedEdges not found in defaults for CompleteGraph. >>
General::stop: Further output of OptionValue::optnf will be suppressed during this calculation.
>>

(*5*)
<<DiscreteMath`Combinatorica`
graf1=MakeGraph[Range[5],(#1==#2||#1<#2)&];
graf2=MakeGraph[Range[5],(#1==#2||#1>#2)&];
Isomorphism[graf1,graf2,All]
graf3=CompleteGraph[5]
graf4=CompleteGraph[5]
Isomorphism[graf3,graf4,All]
General::newpkg: DiscreteMath`Combinatorica` is now available as the Combinatorica Package.
See the Compatibility Guide for updating information. >>
Graph::nonopt: Options expected (instead of opts___?OptionQ) beyond position 2 in
Graph[e_List,v_List,opts___?OptionQ]. An option must be a rule or a list of rules. >>
Graph::nonopt: Options expected (instead of dopts___?OptionQ) beyond position 2 in
Graph[_List,v_List,dopts___?OptionQ]. An option must be a rule or a list of rules. >>
Graph::nonopt: Options expected (instead of dopts___) beyond position 2 in
Graph[_,v_,dopts___]. An option must be a rule or a list of rules. >>
General::stop: Further output of Graph::nonopt will be suppressed during this calculation. >>
SetDelayed::write: Tag Graph in MakeBoxes[Graph[e_,v_,o___],FormatType_] is Protected. >>
SetDelayed::write: Tag Graph in Graph[e_,v_,o___] is Protected. >>
SetDelayed::write: Tag Graph in Options[Graph] is Protected. >>
General::stop: Further output of SetDelayed::write will be suppressed during this calculation. >>
Set::write: Tag Graph in SyntaxInformation[Graph] is Protected. >>
Graph::optx: Unknown option EdgeDirection in
Graph[{{{1,1}},{{1,2}},{{1,3}},{{1,4}},{{1,5}},{{2,2}},{{2,3}},{{2,4}},{{2,5}},{{3,3}},{{3
,4}},{{3,5}},{{4,4}},{{4,5}},{{5,5}}},{{{0.309017,0.951057}},{{-0.809017,0.587785}},{{<<19>>,-<<18>>}},{{0.309017,-0.951057}},{{1.,0}}},EdgeDirection->True]. >>

Graph::optx: Unknown option EdgeDirection in
Graph[{{{1,1}},{{2,1}},{{2,2}},{{3,1}},{{3,2}},{{3,3}},{{4,1}},{{4,2}},{{4,3}},{{4,4}},{{5
,1}},{{5,2}},{{5,3}},{{5,4}},{{5,5}}},{{{0.309017,0.951057}},{{-0.809017,0.587785}},{{<<19>>,-<<18>>}},{{0.309017,-0.951057}},{{1.,0}}},EdgeDirection->True]. >>
Graph::optx: Unknown option EdgeDirection in
Graph[{{{1,1}},{{1,2}},{{2,2}}},{{{0.309017,0.951057}},{{0.809017,0.587785}}},EdgeDirection->True]. >>
Graph::optx: Unknown option EdgeDirection in
Graph[{{{2,2}},{{1,2}},{{1,1}}},{{{0.309017,-0.951057}},{{1.,0}}},EdgeDirection->True].
>>
Graph::optx: Unknown option EdgeDirection in
Graph[{{{1,1}},{{1,2}},{{1,3}},{{2,2}},{{2,3}},{{3,3}}},{{{0.309017,0.951057}},{{0.809017,0.587785}},{{-0.809017,-0.587785}}},EdgeDirection->True]. >>
General::stop: Further output of Graph::optx will be suppressed during this calculation. >>
{{5,4,3,2,1}}
OptionValue::optnf: Option name DirectedEdges not found in defaults for CompleteGraph. >>
Graph[{{{1,2}},{{1,3}},{{1,4}},{{1,5}},{{2,3}},{{2,4}},{{2,5}},{{3,4}},{{3,5}},{{4,5}}},{{
{0.309017,0.951057}},{{-0.809017,0.587785}},{{-0.809017,-0.587785}},{{0.309017,0.951057}},{{1.,0}}}]
OptionValue::optnf: Option name DirectedEdges not found in defaults for CompleteGraph. >>
Graph[{{{1,2}},{{1,3}},{{1,4}},{{1,5}},{{2,3}},{{2,4}},{{2,5}},{{3,4}},{{3,5}},{{4,5}}},{{
{0.309017,0.951057}},{{-0.809017,0.587785}},{{-0.809017,-0.587785}},{{0.309017,0.951057}},{{1.,0}}}]
{{1,2,3,4,5},{1,2,3,5,4},{1,2,4,3,5},{1,2,4,5,3},{1,2,5,3,4},{1,2,5,4,3},{1,3,2,4,5},{1,3,2,5,4},{
1,3,4,2,5},{1,3,4,5,2},{1,3,5,2,4},{1,3,5,4,2},{1,4,2,3,5},{1,4,2,5,3},{1,4,3,2,5},{1,4,3,5,2},{1,4
,5,2,3},{1,4,5,3,2},{1,5,2,3,4},{1,5,2,4,3},{1,5,3,2,4},{1,5,3,4,2},{1,5,4,2,3},{1,5,4,3,2},{2,1,3,
4,5},{2,1,3,5,4},{2,1,4,3,5},{2,1,4,5,3},{2,1,5,3,4},{2,1,5,4,3},{2,3,1,4,5},{2,3,1,5,4},{2,3,4,1,5
},{2,3,4,5,1},{2,3,5,1,4},{2,3,5,4,1},{2,4,1,3,5},{2,4,1,5,3},{2,4,3,1,5},{2,4,3,5,1},{2,4,5,1,3},{
2,4,5,3,1},{2,5,1,3,4},{2,5,1,4,3},{2,5,3,1,4},{2,5,3,4,1},{2,5,4,1,3},{2,5,4,3,1},{3,1,2,4,5},{3,1
,2,5,4},{3,1,4,2,5},{3,1,4,5,2},{3,1,5,2,4},{3,1,5,4,2},{3,2,1,4,5},{3,2,1,5,4},{3,2,4,1,5},{3,2,4,
5,1},{3,2,5,1,4},{3,2,5,4,1},{3,4,1,2,5},{3,4,1,5,2},{3,4,2,1,5},{3,4,2,5,1},{3,4,5,1,2},{3,4,5,2,1
},{3,5,1,2,4},{3,5,1,4,2},{3,5,2,1,4},{3,5,2,4,1},{3,5,4,1,2},{3,5,4,2,1},{4,1,2,3,5},{4,1,2,5,3},{
4,1,3,2,5},{4,1,3,5,2},{4,1,5,2,3},{4,1,5,3,2},{4,2,1,3,5},{4,2,1,5,3},{4,2,3,1,5},{4,2,3,5,1},{4,2
,5,1,3},{4,2,5,3,1},{4,3,1,2,5},{4,3,1,5,2},{4,3,2,1,5},{4,3,2,5,1},{4,3,5,1,2},{4,3,5,2,1},{4,5,1,
2,3},{4,5,1,3,2},{4,5,2,1,3},{4,5,2,3,1},{4,5,3,1,2},{4,5,3,2,1},{5,1,2,3,4},{5,1,2,4,3},{5,1,3,2,4
},{5,1,3,4,2},{5,1,4,2,3},{5,1,4,3,2},{5,2,1,3,4},{5,2,1,4,3},{5,2,3,1,4},{5,2,3,4,1},{5,2,4,1,3},{
5,2,4,3,1},{5,3,1,2,4},{5,3,1,4,2},{5,3,2,1,4},{5,3,2,4,1},{5,3,4,1,2},{5,3,4,2,1},{5,4,1,2,3},{5,4
,1,3,2},{5,4,2,1,3},{5,4,2,3,1},{5,4,3,1,2},{5,4,3,2,1}}
(*6*)
<<DiscreteMath`Combinatorica`
n=Input["Vnesi vrednost za n:"]
graf=CompleteGraph[n]
table=TableForm[ToAdjacencyMatrix[graf]]
Vertices[graf]
brojac=0;
suma=0;

For[i=1,i<=n,i++,20 brojac=0;
For[j=1,j<=n,j++,If[table[[1,i,j]]==1||table[[1,j,i]]==1,brojac++];];
suma+=brojac;]
Print[suma]
rebra=suma/2
Print[rebra]
General::newpkg: DiscreteMath`Combinatorica` is now available as the Combinatorica Package.
See the Compatibility Guide for updating information. >>
Graph::nonopt: Options expected (instead of opts___?OptionQ) beyond position 2 in
Graph[e_List,v_List,opts___?OptionQ]. An option must be a rule or a list of rules. >>
Graph::nonopt: Options expected (instead of dopts___?OptionQ) beyond position 2 in
Graph[_List,v_List,dopts___?OptionQ]. An option must be a rule or a list of rules. >>
Graph::nonopt: Options expected (instead of dopts___) beyond position 2 in
Graph[_,v_,dopts___]. An option must be a rule or a list of rules. >>
General::stop: Further output of Graph::nonopt will be suppressed during this calculation. >>
SetDelayed::write: Tag Graph in MakeBoxes[Graph[e_,v_,o___],FormatType_] is Protected. >>
SetDelayed::write: Tag Graph in Graph[e_,v_,o___] is Protected. >>
SetDelayed::write: Tag Graph in Options[Graph] is Protected. >>
General::stop: Further output of SetDelayed::write will be suppressed during this calculation. >>
Set::write: Tag Graph in SyntaxInformation[Graph] is Protected. >>
5
OptionValue::optnf: Option name DirectedEdges not found in defaults for CompleteGraph. >>
Graph[{{{1,2}},{{1,3}},{{1,4}},{{1,5}},{{2,3}},{{2,4}},{{2,5}},{{3,4}},{{3,5}},{{4,5}}},{{
{0.309017,0.951057}},{{-0.809017,0.587785}},{{-0.809017,-0.587785}},{{0.309017,0.951057}},{{1.,0}}}]
{
{0, 1, 1, 1, 1},
{1, 0, 1, 1, 1},
{1, 1, 0, 1, 1},
{1, 1, 1, 0, 1},
{1, 1, 1, 1, 0}
}
{{0.309017,0.951057},{-0.809017,0.587785},{-0.809017,-0.587785},{0.309017,0.951057},{1.,0}}
Set::write: Tag Times in 0 20 is Protected. >>
Set::write: Tag Times in 4 20 is Protected. >>
Set::write: Tag Times in 8 20 is Protected. >>
General::stop: Further output of Set::write will be suppressed during this calculation. >>
60
30
30
(*7*)
<<DiscreteMath`Combinatorica`
n=5
(*graph=MakeGraph[Range[4],(True)&]*)
graph=OrientGraph[RandomGraph[n,0.85]]

ShowGraph[graph]
tabela=TableForm[ToAdjacencyMatrix[graph]]
izleg=0
vleg=0
For[i=1,i<=n,i++,For[j=1,j<=n,j++,If[tabela[[1,i,j]]==1,izleg++];
If[tabela[[1,j,i]]==1,vleg++];]]
rebra=izleg
Print[rebra]
General::newpkg: DiscreteMath`Combinatorica` is now available as the Combinatorica Package.
See the Compatibility Guide for updating information. >>
Graph::nonopt: Options expected (instead of opts___?OptionQ) beyond position 2 in
Graph[e_List,v_List,opts___?OptionQ]. An option must be a rule or a list of rules. >>
Graph::nonopt: Options expected (instead of dopts___?OptionQ) beyond position 2 in
Graph[_List,v_List,dopts___?OptionQ]. An option must be a rule or a list of rules. >>
Graph::nonopt: Options expected (instead of dopts___) beyond position 2 in
Graph[_,v_,dopts___]. An option must be a rule or a list of rules. >>
General::stop: Further output of Graph::nonopt will be suppressed during this calculation. >>
SetDelayed::write: Tag Graph in MakeBoxes[Graph[e_,v_,o___],FormatType_] is Protected. >>
SetDelayed::write: Tag Graph in Graph[e_,v_,o___] is Protected. >>
SetDelayed::write: Tag Graph in Options[Graph] is Protected. >>
General::stop: Further output of SetDelayed::write will be suppressed during this calculation. >>
Set::write: Tag Graph in SyntaxInformation[Graph] is Protected. >>
5
Part::partw: Part {1,2,3,4,5,6,7,8,9,10} of Cycles[{{1,10,2,9,3,8,4,7}}] does not exist. >>
Part::pspec: Part specification Cycles[{{1,10,2,9,3,8,4,7}}][[{1,2,3,4,5,6,7,8,9,10}]] is neither an
integer nor a list of integers. >>
CompiledFunction::cfsa: Argument {1,2,3,4,5,6,7,8,9,10} at position 1 should be a machine-size
integer. >>
Part::partw: Part {1,2,3,4,5,6,7,8,9,10} of Cycles[{{1,10,2,9,3,8,4,7}}] does not exist. >>
CompiledFunction::cfsa: Argument Cycles[{{1,10,2,9,3,8,4,7}}][[{1,2,3,4,5,6,7,8,9,10}]] at
position 1 should be a machine-size integer. >>
Part::partw: Part {1,2,3,4,5,6,7,8,9,10} of Cycles[{{1,10,2,9,3,8,4,7}}] does not exist. >>
General::stop: Further output of Part::partw will be suppressed during this calculation. >>
Part::pspec: Part specification {{-Round[1/2 (-2+Ceiling[<<1>>]) (-1+Ceiling[<<1>>])Cycles[<<1>>][[{<<10>>}]]],Ceiling[1/2 (1+ 1 Times 2 )]}} is neither an integer nor a list of
integers. >>
Table::iterb: Iterator
{DiscreteMath`Combinatorica`Private`i,V[Graph[{{{1,1,2,1,2,3,1,2,3,4},{2,3,3,4,4,4,5,5,5,5}}}
[[{{-Round[<<1>>],Ceiling[Times[<<2>>]]}}]],{{{0.309017,0.951057}},{{0.809017,0.587785}},{{-0.809017,-<<18>>}},{{0.309017,-0.951057}},{{1.,0}}}]]} does not
have appropriate bounds. >>
Join::heads: Heads DiscreteMath`Combinatorica`Private`Double and Table at positions 1 and 2
are expected to be the same. >>
Join::heads: Heads DiscreteMath`Combinatorica`Private`Double and Table at positions 1 and 2
are expected to be the same. >>

Join::heads: Heads DiscreteMath`Combinatorica`Private`Double and List at positions 1 and 2 are
expected to be the same. >>
General::stop: Further output of Join::heads will be suppressed during this calculation. >>
Table::iterb: Iterator {V[Graph[{{{1,1,2,1,2,3,1,2,3,4},{2,3,3,4,4,4,5,5,5,5}}}[[{{Round[<<1>>],Ceiling[Times[<<2>>]]}}]],{{{0.309017,0.951057}},{{0.809017,0.587785}},{{-0.809017,-0.587785}},{{0.309017,-0.951057}},{{1.,0}}}]]} does not
have appropriate bounds. >>
Table::iterb: Iterator {V[Graph[{{{1,1,2,1,2,3,1,2,3,4},{2,3,3,4,4,4,5,5,5,5}}}[[{{Round[<<1>>],Ceiling[Times[<<2>>]]}}]],{{{0.309017,0.951057}},{{0.809017,0.587785}},{{-0.809017,-0.587785}},{{0.309017,-0.951057}},{{1.,0}}}]]} does not
have appropriate bounds. >>
General::stop: Further output of Table::iterb will be suppressed during this calculation. >>
Range::range: Range specification in
Range[V[Graph[{{{1,1,2,1,2,3,1,2,3,4},{2,3,3,4,4,4,5,5,5,5}}}[[{{Round[<<1>>],Ceiling[Times[<<2>>]]}}]],{{{0.309017,0.951057}},{{0.809017,0.587785}},{{-0.809017,-0.587785}},{{0.309017,-0.951057}},{{1.,0}}}]]] does not
have appropriate bounds. >>
Drop::drop: Cannot drop positions -1 through -1 in {}. >>