Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drawing a connector from and to the same node #1

Open
hm-raws opened this issue May 17, 2023 · 1 comment
Open

Drawing a connector from and to the same node #1

hm-raws opened this issue May 17, 2023 · 1 comment

Comments

@hm-raws
Copy link

hm-raws commented May 17, 2023

Hello,
Thanks for this great package! I was wondering whether it is possible to draw a connector from and to the same node? This would be useful if we wanted to draw an object property connector that has the same class as its domain and range, for example.

@mhoangvslev
Copy link

Sorry for late comment but here is one solution:

  • In tikz-graffoo, do this:
\newcommand{\gObjectProperty}[4][]{%
	\draw[object-property] (#2) to[#1] node[midway,fill=white] {#4} (#3);
}
  • There are 4 args in total: optionals, subject, object and predicate
  • If optional is empty then the edge will be straight and an arc if not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants