summaryrefslogtreecommitdiff
path: root/37/CH8/EX8.1/s1.sci
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /37/CH8/EX8.1/s1.sci
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '37/CH8/EX8.1/s1.sci')
-rwxr-xr-x37/CH8/EX8.1/s1.sci20
1 files changed, 20 insertions, 0 deletions
diff --git a/37/CH8/EX8.1/s1.sci b/37/CH8/EX8.1/s1.sci
new file mode 100755
index 000000000..59238036d
--- /dev/null
+++ b/37/CH8/EX8.1/s1.sci
@@ -0,0 +1,20 @@
+//Simple Graph Functions
+function[]=graph();
+
+ i=1,j=1;
+ adj=zeros(10000);
+ for i=1:n
+ for j=1:n
+
+ adj((i-1)*n+j)=temp;
+ end
+ end
+ for i=1:n
+ for j=1:n
+ if((adj((i-1)*n+j))==1)
+ printf("Vertex %d is connected to vertex %d\n",i,j);
+ end
+ end
+ end
+
+endfunction \ No newline at end of file