Sure, here's an example template to represent a single vertex in a graph model using CLIPS rule engine:
(deftemplate vertex
(slot name (type SYMBOL))
(slot value (type INTEGER))
(multislot edges (type SYMBOL)))
Explanation:
The deftemplate keyword is used to define a new template named vertex.
The vertex template has three slots: name, value, and edges.
The name slot is of type SYMBOL, which represents a symbolic value (e.g. a string).
The value slot is of type INTEGER, which represents a numerical value.
The edges slot is a multislot of type SYMBOL, which can store multiple symbolic values (i.e. the names of other vertices that this vertex is connected to).
--
You received this message because you are subscribed to the Google Groups "CLIPSESG" group.
To post to this group, send email to CLIP...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/CLIPSESG?hl=en
--> IF YOU NO LONGER WANT TO RECEIVE EMAIL <--
Visit this group at http://groups.google.com/group/CLIPSESG?hl=en
Click on "Edit my membership" link.
Select the "No Email" radio button.
Click the "Save these settings" button.
--> IF YOU WANT TO UNSUBSCRIBE <--
Visit this group at http://groups.google.com/group/CLIPSESG?hl=en
Sign in
Click on "Edit my membership" link.
Click the "Unsubscribe" button.
Note: This appears to be the most reliable way to unsubscribe
Alternately, send email to CLIPSESG-u...@googlegroups.com. You will receive an email which you must respond to as well to unsubscribe. Clicking the link mentioned in the unsubscribe reply does not appear to work reliably.
---
You received this message because you are subscribed to a topic in the Google Groups "CLIPSESG" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clipsesg/H-J1l-d7IE8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clipsesg+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/clipsesg/6a80d4d6-c5c6-41f9-9fbb-19886a3fbee1n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/clipsesg/6c00c6ed-f597-4052-909b-e7b70ee55068n%40googlegroups.com.