필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How can I solve this problem

조회 수: 1 (최근 30일)
Badriah Al-Juaid
Badriah Al-Juaid 2020년 1월 11일
마감: MATLAB Answer Bot 2021년 8월 20일
I used prover9 program to solve this problem but the program stucked at some number and never polt the result ,so I think to use Matlab .
Actually, I did not Know which function should I use ? I used For but I did not right result .
this is the problem
if you have 5 nodes (vertics ) and connect them to each other ,so every node has 4 pairs . I want to color the pairs (edges) by 3 different color {red,blue,green, } such that NO three connected edges that has the same color . I mean [ I do not want a triangle, which all its edges color by red, is going to appear] .
I start by this code
Complete (g , 5) ;
Lable(g, v, 1,2,.....5);
%% if tringle is {green , blue, red} exist (" trigle'') , if tringle { red , red , green } exist it .....etc . ( i am stuck in this command how can rewrite ?)
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 1월 11일
MATLAB does not provide a routine to create complete graphs except techniques such as
graph(ones(5))

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by