Graph and digraph

Armani Willis <[email protected]>
Newsgroups gmane.comp.gnu.octave.maintainers
Message-ID <CABNwQq0U_T1AT7OKEOd0yR4gHSq03TB8hf=Rph1x1j61kTrxng@mail.gmail.com>
Hi maintainers, i am trying to implement a new kind of architecture, but
graph and digraph are not implemented, please follow this code by aditya
pathak on mathworks.

Its a code to create node manually

Beaconx=400;beacony=400;
%axis on;gcf;
hold on;hbeacon=plot(beaconx,beacony,'s');
set(hbeacon,'color','red','linewidth',19);
%clear
Nodes=100;%rand('state',6);
figure(1);clf;hold on;
l=400;r=50;
netxloc=rand(1,nodes)*l;netyloc=rand(1,nodes)*l;
for i=1:nodes;plot(netxloc(i),netyloc(i),'.');
text(netxloc(i),netyloc(i),num2str(i));
for j=1:nodes;
d=sqrt((netxloc(i)-netxloc(j))^2+(netyloc(i)-netyloc(j))^2);
if d<=r;matrix(i,j)=1;nbr(i,j)=1;
line([netxloc(i) netxloc(j)],[netyloc(i) netyloc(j)],'linestyle','-');
else matrix(i,j)=inf; end end end
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.