@@ -27,7 +27,7 @@ Waiting
2727package zhao.algorithmMagic ;
2828
2929import zhao.algorithmMagic.Integrator.Route2DDrawingIntegrator ;
30- import zhao.algorithmMagic.algorithm.generatingAlgorithm.ZhaoCoordinatenet2D ;
30+ import zhao.algorithmMagic.algorithm.generatingAlgorithm.ZhaoCoordinateNet2D ;
3131import zhao.algorithmMagic.operands.coordinate.DoubleCoordinateTwo ;
3232import zhao.algorithmMagic.operands.route.DoubleConsanguinityRoute2D ;
3333
@@ -44,14 +44,14 @@ public class MAIN1 {
4444 DoubleCoordinateTwo Z = new DoubleCoordinateTwo (1 , 21 );
4545
4646 /*
47- Get the relationship network. This algorithm is implemented by me to infer the relationship network of people.
48- You can customize the name here. It should be noted that the instantiation of the integrator below requires you to pass the name in.
47+ Get the relationship network. This algorithm is implemented by me to infer the relationship network of people.
48+ You can customize the name here. It should be noted that the instantiation of the integrator below requires you to pass the name in.
4949 */
50- ZhaoCoordinatenet2D zhaoCoordinateNet = ZhaoCoordinatenet2D . getInstance(" Z" );
51-
50+ ZhaoCoordinateNet2D zhaoCoordinateNet = ZhaoCoordinateNet2D . getInstance(" Z" );
51+
5252 /*
53- Add the relationship of people to the relationship network, please note that the relationship network of the algorithm already contains your data,
54- so you must pass the same name in the integration below, so that the integrator can get the temporary network in your algorithm grid data
53+ Add the relationship of people to the relationship network, please note that the relationship network of the algorithm already contains your data,
54+ so you must pass the same name in the integration below, so that the integrator can get the temporary network in your algorithm grid data
5555 */
5656 zhaoCoordinateNet. addRoute(DoubleConsanguinityRoute2D . parse(" A -> B" , A , B )); // Representing A takes the initiative to know B
5757 zhaoCoordinateNet. addRoute(DoubleConsanguinityRoute2D . parse(" A -> C" , A , C ));
@@ -60,7 +60,7 @@ public class MAIN1 {
6060 zhaoCoordinateNet. addRoute(DoubleConsanguinityRoute2D . parse(" B -> Z" , B , Z ));
6161
6262 // Use a 2-dimensional route drawing integrator to output a picture of the relationship network between all the people above
63- Route2DDrawingIntegrator a = new Route2DDrawingIntegrator (" Z " , " A " );
63+ Route2DDrawingIntegrator a = new Route2DDrawingIntegrator (" A " , " Z " );
6464 // Set image output path
6565 a. setImageOutPath(" D:\\ out\\ image.jpg" )
6666 // set image width
@@ -71,15 +71,15 @@ public class MAIN1 {
7171 .setDiscreteThreshold(4 )
7272 // Run the integrator!
7373 .run();
74-
75- // Clean data in relational network
76- zhaoCoordinateNet. clear();
74+
75+ // Clean data in relational network
76+ zhaoCoordinateNet. clear();
7777 }
7878}
7979```
8080
8181- The relationship network picture generated after running
82- ![ image] ( https://user-images.githubusercontent.com/113756063/195981317-e40194a8-474a-4de7-9bfd-84ac40b66d15 .png )
82+ ![ image] ( https://user-images.githubusercontent.com/113756063/196412140-8b81979d-ecc1-4774-9cbe-df8a89c19c1c .png )
8383
8484# directory structure
8585
0 commit comments